Actions
Feature #7528
closedOfficial Forward Declaration Support
Status:
Closed
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".
Updated by Roel Standaert over 4 years ago
We actually put forward declarations in WGlobal.h
. It also includes a little bit of other stuff (mostly some enums).
Updated by Aaron Wright over 3 years 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.
Updated by Aaron Wright about 2 years ago
This can be closed. The WGlobal.h file works well.
Updated by Roel Standaert about 2 years ago
- Description updated (diff)
- Status changed from New to Closed
Actions