Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-02-21 11:31:18


Hi,
looking at this failure:

   http://tinyurl.com/m6rho

I wonder if that's expected failure, or an glitch?

The error message is:

  /boost/head-regression/boost/boost/typeof/binding_workaround.hpp(11): error:
  function call is not allowed in a constant expression
  #if BOOST_WORKAROUND(BOOST_MSVC,==1310) && defined(BOOST_TYPEOF_EMULATION)

And I can get rid of it by this patch:

--- binding_workaround.hpp 20 Feb 2006 21:53:02 -0000 1.1
+++ binding_workaround.hpp 21 Feb 2006 16:30:43 -0000
@@ -7,12 +7,13 @@
 MSVC 7.1-, from inside a template,
 can't bind a function pointer to const T&
 */
+#include <boost/detail/workaround.hpp>

 #if BOOST_WORKAROUND(BOOST_MSVC,==1310) && defined(BOOST_TYPEOF_EMULATION)

 #include <boost/utility/enable_if.hpp>
 #include <boost/type_traits/is_function.hpp>
-#include <boost/detail/workaround.hpp>
+

Certainly, using BOOST_WORKAROUND before including workaround.hpp is not good
idea?

- Volodya


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