dacplayproject / cpp-play2

New updates have been move to https://github.com/dacplayproject
MIT License
4 stars 0 forks source link

class template partial specialization is not more specialized than the primary #35

Open hackfisher opened 7 years ago

hackfisher commented 7 years ago
/Users/denny/github.com/bitsuperlab/cpp-play2/libraries/fc/include/fc/static_variant.hpp:385:34: error: class template partial specialization is not more specialized than the primary
      template [-Winvalid-partial-specialization]
  template<typename... T> struct get_typename<T...>  { static const char* name()   { return typeid(static_variant<T...>).name();   } };
                                 ^
/Users/denny/github.com/bitsuperlab/cpp-play2/libraries/fc/include/fc/reflect/typename.hpp:18:30: note: template is declared here
  template<typename T> class get_typename{};
hackfisher commented 7 years ago

https://stackoverflow.com/questions/46356153/xcode-9-falls-to-build-partial-template-specialization-in-c

cmake -G Xcode -DGRAPHENE_DISABLE_UNITY_BUILD=true -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOPENSSL_LIBRARIES=/usr/local/opt/openssl/lib -DBOOST_LIBRARYDIR=/usr/local/opt/boost@1.60/lib -DBOOST_ROOT=/usr/local/opt/boost@1.60 ../cpp-play2/
hackfisher commented 7 years ago

This seems to be issue from Xcode 9 upgrade.

clar commented 7 years ago

no issue found on old Xcode