Boost logo

Boost :

Subject: [boost] [lambda][cast] 1.42 and 1.43 boost/lambda/cast.hpp requires #include before it - bug?
From: Krzysztof Czainski (1czajnik_at_[hidden])
Date: 2010-05-09 09:12:00


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk