Opened 12 years ago

Closed 12 years ago

#4203 closed Bugs (fixed)

boost/lambda/casts.hpp requires #include before it

Reported by: 1czajnik@… Owned by: No-Maintainer
Milestone: Boost 1.43.0 Component: lambda
Version: Boost 1.43.0 Severity: Problem
Keywords: Cc:

Description

I have noticed, that with includes in this order:

#include <boost/lambda/cast.hpp>
#include <boost/lambda/lambda.hpp>

later using ll_static_cast fails to compile with first message (gcc-4.3):

/usr/include/boost/lambda/casts.hpp:93: error: ‘return_type_N’ is not a template

However, including lambda.hpp before cast.hpp fixes the error. I have tested this with boost 1.42.0 and 1.43.0.

Regards Krzysztof Czainski

Attachments (1)

main.cpp (347 bytes ) - added by 1czajnik@… 12 years ago.
test case

Download all attachments as: .zip

Change History (2)

by 1czajnik@…, 12 years ago

Attachment: main.cpp added

test case

comment:1 by Steven Watanabe, 12 years ago

Resolution: fixed
Status: newclosed

(In [61881]) Make sure that all top level headers in Lambda include their dependencies. Fixes #4203

Note: See TracTickets for help on using tickets.