Boost logo

Boost Users :

Subject: [Boost-users] error with "-std=c++0x" flag
From: girish hilage (girish_hilage_at_[hidden])
Date: 2010-03-26 09:55:17


Hi,

   I am using "-std=c++0x" flag while compiling my program but it gives me errors as follows :

/usr/lib/gcc/i586-redhat-linux/4.4.0/../../../../include/c++/4.4.0/tr1_impl/type_traits: In function ‘bool boost::filesystem::is_empty(const boost::filesystem::path&)’:
/usr/lib/gcc/i586-redhat-linux/4.4.0/../../../../include/c++/4.4.0/tr1_impl/type_traits:326: error: ‘template<class _Tp> struct std::is_empty’ is not a function,
/usr/include/boost/filesystem/operations.hpp:361: error:   conflict with ‘template<class Path> typename boost::enable_if<boost::filesystem::is_basic_path<Path>, bool>::type boost::filesystem::is_empty(const Path&)’
/usr/include/boost/filesystem/operations.hpp:660: error:   in call to ‘is_empty’
/usr/lib/gcc/i586-redhat-linux/4.4.0/../../../../include/c++/4.4.0/tr1_impl/type_traits: In function ‘bool boost::filesystem::is_empty(const boost::filesystem::wpath&)’:
/usr/lib/gcc/i586-redhat-linux/4.4.0/../../../../include/c++/4.4.0/tr1_impl/type_traits:326: error: ‘template<class _Tp> struct std::is_empty’ is not a function,
/usr/include/boost/filesystem/operations.hpp:361: error:   conflict with ‘template<class Path> typename boost::enable_if<boost::filesystem::is_basic_path<Path>, bool>::type boost::filesystem::is_empty(const Path&)’
/usr/include/boost/filesystem/operations.hpp:662: error:   in call to ‘is_empty’

   Is there any workaround to this problem?

Regards,
Girish



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net