-
Notifications
You must be signed in to change notification settings - Fork 757
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
sclang: changed some boost code to std #2091
Conversation
Because MSVC does not support some C++11 constructs that boost is using. Note that we can probably streamline the code with some MACROs or something, but I want to make it very explicit for now, to help with the PR discussion.
thanks for looking into this! it looks pretty good, just two comments:
|
columnDescriptorsWithStats.push_back( std::move(future) ); | ||
} | ||
|
||
calcRowStats(bigTable, filledSelectors, numClasses, numSelectors, 0, std::min( selectorsPerJob, numSelectors) ); | ||
|
||
for( auto & future : columnDescriptorsWithStats ) { | ||
#ifdef _MSC_VER | ||
future.wait(); |
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.
please try not to mix tabs and spaces.
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.
Ok, I will change the async to deferred.
Sorry about the space, I will fix that too, of course.
columnDescriptorsWithStats.push_back( std::move(future) ); } calcRowStats(bigTable, filledSelectors, numClasses, numSelectors, 0, std::min( selectorsPerJob, numSelectors) ); for( auto & future : columnDescriptorsWithStats ) {
+#ifdef MSC
And fix a whitespace issue.
Master now builds fine with VS 2013 with both boost 1.60 and 1.61. It think maybe after @timblechmann gave a lgtm this should go in as quickly as possible. |
Windows fully back on master, yey! Thanks @llloret ! |
This is to have windows MSVC compile on master again.
Because MSVC does not support some C++11 constructs that boost is using.
Note that we can probably streamline the code with some MACROs or
something, but I want to make it very explicit for now, to help with the
PR discussion.