Skip to content
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

compile without boost #3

Closed
TianBo-Timothy opened this issue Dec 22, 2017 · 1 comment
Closed

compile without boost #3

TianBo-Timothy opened this issue Dec 22, 2017 · 1 comment

Comments

@TianBo-Timothy
Copy link

I just run into another compile issue: the library requires boost to compile.

I checked the code. There is only one place where boost is used: in MapArray.h, BOOST_STATIC_ASSERT is used to check the condition D == 1. I tried to replace it with static_assert, it then compiles.

My suggestion is to remove header #include <boost/static_assert.hpp> and replace BOOST_STATIC_ASSERT with static_assert to avoid unnecessary dependency.

rudaoshi added a commit that referenced this issue Dec 25, 2017
@rudaoshi
Copy link
Owner

Boost dependency has been removed. static_assert in C++11 is used instead.

The compiler options for gcc and nvcc are both updated to C++11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants