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::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::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