-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support onetbb and boost 1.87.0 on FreeBSD #1459
base: RB-10.5
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,11 @@ | |
|
||
#include "boost/algorithm/string/classification.hpp" | ||
#include "boost/algorithm/string/split.hpp" | ||
#include "boost/filesystem/convenience.hpp" | ||
#if BOOST_VERSION >= 108500 | ||
#include <boost/filesystem/path.hpp> | ||
#else | ||
#include <boost/filesystem/convenience.hpp> | ||
#endif | ||
Comment on lines
-42
to
+46
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can just drop the |
||
#include "boost/filesystem/operations.hpp" | ||
#include "boost/format.hpp" | ||
|
||
|
@@ -87,8 +91,11 @@ bool FileNameParameter::valueValid( const Object *value, std::string *reason ) c | |
// extensions check | ||
if( extensions().size() ) | ||
{ | ||
#if BOOST_VERSION >= 108500 | ||
string ext = boost::filesystem::path(boost::filesystem::path( s->readable())).extension().string(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe this line will work in Boost 1.80 as well, so we can simply replace the old code completely. I think we have one-too-many |
||
#else | ||
string ext = boost::filesystem::extension(boost::filesystem::path( s->readable())); | ||
|
||
#endif | ||
const vector<string> &exts = extensions(); | ||
bool found = false; | ||
for( vector<string>::const_iterator it=exts.begin(); it!=exts.end(); it++ ) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
tbb/version.h
header doesn't seem to exist in TBB 2020, so is breaking the build here :