[Boost-bugs] [Boost C++ Libraries] #4203: boost/lambda/casts.hpp requires #include before it

Subject: [Boost-bugs] [Boost C++ Libraries] #4203: boost/lambda/casts.hpp requires #include before it
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-05-09 19:14:35


#4203: boost/lambda/casts.hpp requires #include before it
--------------------------------+-------------------------------------------
 Reporter: 1czajnik@… | Owner: no-maintainer
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: lambda
  Version: Boost 1.43.0 | Severity: Problem
 Keywords: |
--------------------------------+-------------------------------------------
 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

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4203>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:03 UTC