-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
Requiring CPP11 by default in DGtal #1080
Conversation
I'm still working on it, it just wanted to notify the devs. |
👍 |
@rolanddenis I have an issue with catch on travis (see https://gist.github.com/dcoeurjo/888095e6f971e2d25267)... any idea? |
It seems that |
@JacquesOlivierLachaud : std::binder1st is deprecated in c++11 (see LocalEstimatorFromSurfelFunctorAdapter.h, line 145) and an error is raised on travis. Coud you please have a look to the code ? It is unclear for me how to fix it with C++11 stuffs (better solution than redefining a "binder" inner struct) |
A way to solve this is to replace In It is also possible to directly construct Note: the documentation talks about a |
Thanks @rolanddenis ! |
(Yeah.. CMetric -> CMetricSpace, fixed now) |
Allright, this PR is ready for review. |
I look it and also with DGtalTools |
The "WITH_C11" value is still displayed and "false". |
you're right. I'll clean this up |
MESSAGE(STATUS "Supported c++11 features: [${C11_FEATURES} ]") | ||
ADD_DEFINITIONS("-DWITH_C11 ") | ||
ELSE() | ||
MESSAGE(FATAL_ERROR "Your compiler does not support any c++11 feature. Please specify another C++ compiler of disable this WITH_C11 option.") |
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.
since we can no more use it without c++11 we can update "or disable this WITH_C11 option"
looks fine for me, tested on different compilators, and it looks also to fix the DGtalTools "rand" related bug. ;) ! |
yep, you're right. |
I've also changed the dgtal.org web page. |
yes thanks, perfect ! I have also the fix in DGtalTools, merging.. |
Requiring CPP11 by default in DGtal
Thanks... Please have a look to #1090 for the boost::random cleanup. |
This PR:
#ifdef WITH_C11
switches and update the code accordinglyboost::array
tostd::array