ericniebler / meta

A tiny metaprogramming library
Boost Software License 1.0
302 stars 47 forks source link

Unable to compile #43

Closed soulslicer closed 8 years ago

soulslicer commented 8 years ago

Cmake works fine..

but during compilation:

/home/robotserver/meta/example/tutorial_snippets.cpp:268:5: error: static assertion failed: static_assert(std::is_same<meta::invoke<t, unsigned>, int const &>{}, "");

ericniebler commented 8 years ago

What compiler/version are you using?

ericniebler commented 8 years ago

Hello?

soulslicer commented 8 years ago

cmake version 3.2.2

g++ (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4

gnzlbg commented 8 years ago

g++ (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4

@soulslicer Meta requires a "pretty much conforming" C++11 compiler, which for gcc means g++ >= 4.9.

For some reason this is not in the readme.

gnzlbg commented 8 years ago

I quickly added the info that gcc >= 4.9 and clang >= 3.4 are supported to the readme since those are the compilers we actively try to support.

I wouldn't be surprised if some of them don't work though. I recall some issues with clang 3.5, and GCC 5.x + C++14 + constexpr never quite worked properly.