|
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