Project

General

Profile

Feature #7528

Official Forward Declaration Support

Added by Aaron Wright over 1 year ago. Updated 3 months ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
04/23/2020
Due date:
% Done:

0%

Estimated time:

Description

I find myself forward declaring the same classes from Wt a lot (dozens of files):

namespace Wt {
namespace Http {

class Request;
class Response;

} // namespace Http
} // namespace Wt

It would be nice if Wt provided a header for forward declarations, like some other libraries sometimes do; "rapidjson/fwd.h", or "iosfwd".

#1

Updated by Roel Standaert over 1 year ago

We actually put forward declarations in WGlobal.h. It also includes a little bit of other stuff (mostly some enums).

#2

Updated by Aaron Wright 3 months ago

Roel Standaert wrote in #note-1:

We actually put forward declarations in WGlobal.h. It also includes a little bit of other stuff (mostly some enums).

You're right. It took me years of working with Wt to find that header. Something with "fwd" in the name would have helped.

Also available in: Atom PDF