Closed OneRaynyDay closed 6 years ago
ok one idea to fix this would be to add the 4th template argument to svector which is a bool Init
so that the template specialization would look like:
template <class X, class T, std::size_t N, class A, bool B>
struct rebind_container<X, svector<T, N, A, B>>
Not sure if that would help though. Otherwise we need to disable the overload using enable_if I guess?
@wolfv Your solution should fix the issue, otherwise we can fill a bug report to gcc (although I'm not sure that gcc-8 is right here).
Homebrew lists 8.2 as stable, let's see if that fixes the issue: https://formulae.brew.sh/formula/gcc
Homebrew lists GCC 8.2 as stable version:
The C++ 17 fixes for GCC 8 have been merged into master.
Simple reproducible example:
logreg.h
:logreg.cpp
:Running it with the following flags on apple clang with following configs:
Gives us:
However, running the SAME command with
g++-8
, with details:Using the new version of xtensor: