Problem when compiling with 1.47 on Mac OS X 10.6.8

must have done something very silly, but code that used compiled fine now gives me: g++ -gfull -Wall -Werror -fexceptions -DDEBUG_TP -Ddarwin86 -I./ -Itp_datastruct/ -Iutil/ -I/usr/local/include -I/Users/frank/Sandbox/work -c -o objs/Profile.o tp_datastruct/Profile.cpp In file included from /usr/local/include/boost/type_traits/is_class.hpp:16, from /usr/local/include/boost/type_traits/is_abstract.hpp:55, from /usr/local/include/boost/type_traits/is_convertible.hpp:25, from /usr/local/include/boost/type_traits/is_enum.hpp:19, from /usr/local/include/boost/type_traits/is_signed.hpp:15, from /usr/local/include/boost/type_traits/make_unsigned.hpp:14, from /usr/local/include/boost/lexical_cast.hpp:33, from tp_datastruct/AttributeValue.h:13, from tp_datastruct/Profile.h:10, from tp_datastruct/Profile.cpp:3: /usr/local/include/boost/type_traits/is_union.hpp:38: error: expected primary-expression before ')' token /usr/local/include/boost/type_traits/is_union.hpp:38: error: a function call cannot appear in a constant-expression Any idea?? fastier@yahoo.com Frank fastier@yahoo.com

On 15 July 2011 03:03, Frank Astier
/usr/local/include/boost/type_traits/is_union.hpp:38: error: expected primary-expression before ')' token /usr/local/include/boost/type_traits/is_union.hpp:38: error: a function call cannot appear in a constant-expression
Line 38 of that file is a comment. It might be that something has gone wrong with the installation, and you've still got the old version of that header. Try comparing it to: http://www.boost.org/doc/libs/1_47_0/boost/type_traits/is_union.hpp http://www.boost.org/doc/libs/1_46_1/boost/type_traits/is_union.hpp

/usr/local/include/boost/type_traits/is_union.hpp:38: error: expected primary-expression before ')' token /usr/local/include/boost/type_traits/is_union.hpp:38: error: a function call cannot appear in a constant-expression
Line 38 of that file is a comment.
His compiler might count lines some other way. Anyway, the manner some people ask questions is a pretty interesting phenomenon...

That was it. I removed /usr/local/include/boost and /usr/local/lib/libboost*, reinstalled and it's now all fine. Thanks! Frank fastier@yahoo.com On Jul 15, 2011, at 2:39 AM, Daniel James wrote:
On 15 July 2011 03:03, Frank Astier
wrote: : /usr/local/include/boost/type_traits/is_union.hpp:38: error: expected primary-expression before ')' token /usr/local/include/boost/type_traits/is_union.hpp:38: error: a function call cannot appear in a constant-expression
Line 38 of that file is a comment. It might be that something has gone wrong with the installation, and you've still got the old version of that header. Try comparing it to:
http://www.boost.org/doc/libs/1_47_0/boost/type_traits/is_union.hpp http://www.boost.org/doc/libs/1_46_1/boost/type_traits/is_union.hpp _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
Daniel James
-
Frank Astier
-
Igor R