build: boost: Drop branches requiring boost-1.46

This commit is contained in:
Priit Laes
2020-10-07 23:42:34 +03:00
committed by wwmayer
parent 6cc4d8aec2
commit d6b8725b34
2 changed files with 3 additions and 3 deletions

View File

@@ -1713,7 +1713,7 @@ void Application::init(int argc, char ** argv)
#endif
initTypes();
#if (BOOST_VERSION < 104600) || (BOOST_FILESYSTEM_VERSION == 2)
#if (BOOST_FILESYSTEM_VERSION == 2)
boost::filesystem::path::default_name_check(boost::filesystem::no_check);
#endif

View File

@@ -203,7 +203,7 @@ void PropertyPath::setValue(const boost::filesystem::path &Path)
void PropertyPath::setValue(const char * Path)
{
aboutToSetValue();
#if (BOOST_VERSION < 104600) || (BOOST_FILESYSTEM_VERSION == 2)
#if (BOOST_FILESYSTEM_VERSION == 2)
_cValue = boost::filesystem::path(Path,boost::filesystem::no_check );
//_cValue = boost::filesystem::path(Path,boost::filesystem::native );
//_cValue = boost::filesystem::path(Path,boost::filesystem::windows_name );
@@ -220,7 +220,7 @@ boost::filesystem::path PropertyPath::getValue(void) const
PyObject *PropertyPath::getPyObject(void)
{
#if (BOOST_VERSION < 104600) || (BOOST_FILESYSTEM_VERSION == 2)
#if (BOOST_FILESYSTEM_VERSION == 2)
std::string str = _cValue.native_file_string();
#else
std::string str = _cValue.string();