Skip to content

Commit 40527f5

Browse files
committed
cortex: support for newer boost
1 parent 0b88aa4 commit 40527f5

16 files changed

+44
-42
lines changed

include/IECorePython/VectorTypedDataBinding.inl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#define IECOREPYTHON_VECTORTYPEDDATABINDING_INL
3737

3838
#include "boost/python.hpp"
39+
#include "boost/numeric/conversion/cast.hpp"
3940

4041
#include "IECorePython/IECoreBinding.h"
4142
#include "IECorePython/RunTimeTypedBinding.h"

src/IECore/DirNameParameter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
#include "boost/algorithm/string/classification.hpp"
4040
#include "boost/algorithm/string/split.hpp"
41-
#include "boost/filesystem/convenience.hpp"
41+
#include "boost/filesystem/path.hpp"
4242
#include "boost/filesystem/operations.hpp"
4343

4444
#include <algorithm>

src/IECore/FileNameParameter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
#include "boost/algorithm/string/classification.hpp"
4141
#include "boost/algorithm/string/split.hpp"
42-
#include "boost/filesystem/convenience.hpp"
42+
#include "boost/filesystem/path.hpp"
4343
#include "boost/filesystem/operations.hpp"
4444
#include "boost/format.hpp"
4545

@@ -87,7 +87,7 @@ bool FileNameParameter::valueValid( const Object *value, std::string *reason ) c
8787
// extensions check
8888
if( extensions().size() )
8989
{
90-
string ext = boost::filesystem::extension(boost::filesystem::path( s->readable()));
90+
string ext = boost::filesystem::path(boost::filesystem::path( s->readable())).extension().string();
9191

9292
const vector<string> &exts = extensions();
9393
bool found = false;

src/IECore/FileSequenceFunctions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
#include "IECore/ReversedFrameList.h"
4343

4444
#include "boost/algorithm/string.hpp"
45-
#include "boost/filesystem/convenience.hpp"
46-
#include "boost/filesystem/operations.hpp"
4745
#include "boost/filesystem/path.hpp"
46+
#include "boost/filesystem/operations.hpp"
47+
#include "boost/filesystem/directory.hpp"
4848
#include "boost/format.hpp"
4949
#include "boost/lexical_cast.hpp"
5050
#include "boost/regex.hpp"

src/IECore/FileSequenceParameter.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141

4242
#include "boost/algorithm/string/classification.hpp"
4343
#include "boost/algorithm/string/split.hpp"
44-
#include "boost/filesystem/convenience.hpp"
44+
#include "boost/filesystem/path.hpp"
45+
#include "boost/filesystem/operations.hpp"
4546

4647
#include <algorithm>
4748
#include <cassert>
@@ -130,7 +131,7 @@ bool FileSequenceParameter::valueValid( const Object *value, std::string *reason
130131

131132
if ( m_extensions.size() )
132133
{
133-
std::string ext = boost::filesystem::extension( boost::filesystem::path( fileSequence->getFileName() ) );
134+
std::string ext = boost::filesystem::path( boost::filesystem::path( fileSequence->getFileName() ) ).extension().string();
134135
if ( ext.size() && ext[0] == '.' )
135136
{
136137
ext = ext.substr( 1, ext.size() - 1 );

src/IECore/FileSequenceVectorParameter.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141

4242
#include "boost/algorithm/string/classification.hpp"
4343
#include "boost/algorithm/string/split.hpp"
44-
#include "boost/filesystem/convenience.hpp"
44+
#include "boost/filesystem/operations.hpp"
45+
#include "boost/filesystem/path.hpp"
4546

4647
#include <algorithm>
4748
#include <cassert>
@@ -131,7 +132,7 @@ bool FileSequenceVectorParameter::valueValid( const Object *value, std::string *
131132

132133
if ( m_extensions.size() )
133134
{
134-
std::string ext = boost::filesystem::extension( boost::filesystem::path( fileSequence->getFileName() ) );
135+
std::string ext = boost::filesystem::path( boost::filesystem::path( fileSequence->getFileName())).extension().string();
135136
if ( ext.size() && ext[0] == '.' )
136137
{
137138
ext = ext.substr( 1, ext.size() - 1 );

src/IECore/IndexedIO.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
#include "IECore/Exception.h"
3838

39-
#include "boost/filesystem/convenience.hpp"
39+
#include "boost/filesystem/path.hpp"
4040
#include "boost/algorithm/string.hpp"
4141

4242
#include <iostream>
@@ -76,7 +76,7 @@ IndexedIOPtr IndexedIO::create( const std::string &path, const IndexedIO::EntryI
7676
{
7777
IndexedIOPtr result = nullptr;
7878

79-
std::string extension = fs::extension(path);
79+
std::string extension = fs::path(path).extension().string();
8080
boost::to_lower( extension );
8181

8282
const CreatorMap &createFns = creators();

src/IECore/PathParameter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
#include "boost/algorithm/string/classification.hpp"
4040
#include "boost/algorithm/string/split.hpp"
41-
#include "boost/filesystem/convenience.hpp"
41+
#include "boost/filesystem/path.hpp"
4242
#include "boost/filesystem/operations.hpp"
4343

4444
#include <algorithm>

src/IECore/PathVectorParameter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
#include "boost/algorithm/string/classification.hpp"
4040
#include "boost/algorithm/string/split.hpp"
41-
#include "boost/filesystem/convenience.hpp"
41+
#include "boost/filesystem/path.hpp"
4242
#include "boost/filesystem/operations.hpp"
4343

4444
#include <algorithm>

src/IECore/Reader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
#include "boost/algorithm/string/classification.hpp"
4242
#include "boost/algorithm/string/split.hpp"
43-
#include "boost/filesystem/convenience.hpp"
43+
#include "boost/filesystem/path.hpp"
4444

4545
using namespace std;
4646
using namespace IECore;
@@ -84,7 +84,7 @@ ReaderPtr Reader::create( const std::string &fileName )
8484
bool knownExtension = false;
8585
ExtensionsToFnsMap *m = extensionsToFns();
8686
assert( m );
87-
string ext = extension(boost::filesystem::path(fileName));
87+
string ext = path(boost::filesystem::path(fileName)).extension().string();
8888
if( ext!="" )
8989
{
9090
ExtensionsToFnsMap::const_iterator it = m->find( ext );

0 commit comments

Comments
 (0)