You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CMakeLists ask for C++11, however the build fails even with C++14. In fact, it seems to require C++17:
In file included from /opt/local/include/core/exception.hpp:8,
from /opt/local/include/core/archive.hpp:22,
from /opt/local/include/core/ngcore.hpp:4,
from /opt/local/include/eigen3/../general/../include/mydefs.hpp:14,
from /opt/local/include/eigen3/../general/myadt.hpp:16,
from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_gmsh/gmsh/work/gmsh-4.12.2-source/contrib/Netgen/libsrc/include/../linalg/../include/myadt.hpp:1,
from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_gmsh/gmsh/work/gmsh-4.12.2-source/contrib/Netgen/libsrc/include/../linalg/linalg.hpp:23,
from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_gmsh/gmsh/work/gmsh-4.12.2-source/contrib/Netgen/libsrc/include/linalg.hpp:1,
from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_gmsh/gmsh/work/gmsh-4.12.2-source/contrib/Netgen/nglib_gmsh.cpp:5:
/opt/local/include/core/ngcore_api.hpp:99:44: error: 'std::align_val_t' has not been declared
99 | inline void * operator new (size_t s, std::align_val_t al)
| ^~~~~~~~~~~
In file included from /opt/local/include/core/exception.hpp:8,
from /opt/local/include/core/archive.hpp:22,
from /opt/local/include/core/ngcore.hpp:4,
from /opt/local/include/eigen3/../general/../include/mydefs.hpp:14,
from /opt/local/include/eigen3/../general/myadt.hpp:16,
from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_gmsh/gmsh/work/gmsh-4.12.2-source/contrib/Netgen/libsrc/include/myadt.hpp:1,
from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_gmsh/gmsh/work/gmsh-4.12.2-source/contrib/Netgen/libsrc/general/array.cpp:16:
/opt/local/include/core/ngcore_api.hpp:99:44: error: 'std::align_val_t' has not been declared
99 | inline void * operator new (size_t s, std::align_val_t al)
| ^~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: In function 'void* operator new(size_t, int)':
/opt/local/include/core/ngcore_api.hpp:101:17: error: '__STDCPP_DEFAULT_NEW_ALIGNMENT__' was not declared in this scope
101 | if (int(al) > __STDCPP_DEFAULT_NEW_ALIGNMENT__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: At global scope:
/opt/local/include/core/ngcore_api.hpp:107:46: error: 'std::align_val_t' has not been declared
107 | inline void * operator new[] (size_t s, std::align_val_t al)
| ^~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: In function 'void* operator new(size_t, int)':
/opt/local/include/core/ngcore_api.hpp:101:17: error: '__STDCPP_DEFAULT_NEW_ALIGNMENT__' was not declared in this scope
101 | if (int(al) > __STDCPP_DEFAULT_NEW_ALIGNMENT__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: At global scope:
/opt/local/include/core/ngcore_api.hpp:107:46: error: 'std::align_val_t' has not been declared
107 | inline void * operator new[] (size_t s, std::align_val_t al)
| ^~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: In function 'void* operator new [](size_t, int)':
/opt/local/include/core/ngcore_api.hpp:109:17: error: '__STDCPP_DEFAULT_NEW_ALIGNMENT__' was not declared in this scope
109 | if (int(al) > __STDCPP_DEFAULT_NEW_ALIGNMENT__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: At global scope:
/opt/local/include/core/ngcore_api.hpp:115:48: error: 'std::align_val_t' has not been declared
115 | inline void operator delete ( void* ptr, std::align_val_t al ) noexcept
| ^~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: In function 'void* operator new [](size_t, int)':
/opt/local/include/core/ngcore_api.hpp:109:17: error: '__STDCPP_DEFAULT_NEW_ALIGNMENT__' was not declared in this scope
109 | if (int(al) > __STDCPP_DEFAULT_NEW_ALIGNMENT__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: At global scope:
/opt/local/include/core/ngcore_api.hpp:115:48: error: 'std::align_val_t' has not been declared
115 | inline void operator delete ( void* ptr, std::align_val_t al ) noexcept
| ^~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: In function 'void operator delete(void*, int)':
/opt/local/include/core/ngcore_api.hpp:117:17: error: '__STDCPP_DEFAULT_NEW_ALIGNMENT__' was not declared in this scope
117 | if (int(al) > __STDCPP_DEFAULT_NEW_ALIGNMENT__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: At global scope:
/opt/local/include/core/ngcore_api.hpp:123:48: error: 'std::align_val_t' has not been declared
123 | inline void operator delete[]( void* ptr, std::align_val_t al ) noexcept
| ^~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: In function 'void operator delete(void*, int)':
/opt/local/include/core/ngcore_api.hpp:117:17: error: '__STDCPP_DEFAULT_NEW_ALIGNMENT__' was not declared in this scope
117 | if (int(al) > __STDCPP_DEFAULT_NEW_ALIGNMENT__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: At global scope:
/opt/local/include/core/ngcore_api.hpp:123:48: error: 'std::align_val_t' has not been declared
123 | inline void operator delete[]( void* ptr, std::align_val_t al ) noexcept
| ^~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: In function 'void operator delete [](void*, int)':
/opt/local/include/core/ngcore_api.hpp:125:17: error: '__STDCPP_DEFAULT_NEW_ALIGNMENT__' was not declared in this scope
125 | if (int(al) > __STDCPP_DEFAULT_NEW_ALIGNMENT__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: At global scope:
/opt/local/include/core/ngcore_api.hpp:131:64: error: 'std::align_val_t' has not been declared
131 | inline void operator delete ( void* ptr, std::size_t sz, std::align_val_t al ) noexcept
| ^~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: In function 'void operator delete [](void*, int)':
/opt/local/include/core/ngcore_api.hpp:125:17: error: '__STDCPP_DEFAULT_NEW_ALIGNMENT__' was not declared in this scope
125 | if (int(al) > __STDCPP_DEFAULT_NEW_ALIGNMENT__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: At global scope:
/opt/local/include/core/ngcore_api.hpp:131:64: error: 'std::align_val_t' has not been declared
131 | inline void operator delete ( void* ptr, std::size_t sz, std::align_val_t al ) noexcept
| ^~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: In function 'void operator delete(void*, std::size_t, int)':
/opt/local/include/core/ngcore_api.hpp:133:17: error: '__STDCPP_DEFAULT_NEW_ALIGNMENT__' was not declared in this scope
133 | if (int(al) > __STDCPP_DEFAULT_NEW_ALIGNMENT__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: At global scope:
/opt/local/include/core/ngcore_api.hpp:139:64: error: 'std::align_val_t' has not been declared
139 | inline void operator delete[]( void* ptr, std::size_t sz, std::align_val_t al ) noexcept
| ^~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: In function 'void operator delete(void*, std::size_t, int)':
/opt/local/include/core/ngcore_api.hpp:133:17: error: '__STDCPP_DEFAULT_NEW_ALIGNMENT__' was not declared in this scope
133 | if (int(al) > __STDCPP_DEFAULT_NEW_ALIGNMENT__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: At global scope:
/opt/local/include/core/ngcore_api.hpp:139:64: error: 'std::align_val_t' has not been declared
139 | inline void operator delete[]( void* ptr, std::size_t sz, std::align_val_t al ) noexcept
| ^~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: In function 'void operator delete [](void*, std::size_t, int)':
/opt/local/include/core/ngcore_api.hpp:141:17: error: '__STDCPP_DEFAULT_NEW_ALIGNMENT__' was not declared in this scope
141 | if (int(al) > __STDCPP_DEFAULT_NEW_ALIGNMENT__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: In function 'void operator delete [](void*, std::size_t, int)':
/opt/local/include/core/ngcore_api.hpp:141:17: error: '__STDCPP_DEFAULT_NEW_ALIGNMENT__' was not declared in this scope
141 | if (int(al) > __STDCPP_DEFAULT_NEW_ALIGNMENT__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/local/include/core/archive.hpp:24:
/opt/local/include/core/type_traits.hpp: At global scope:
/opt/local/include/core/type_traits.hpp:51:32: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'?
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^~~~~~~~~
| is_same
/opt/local/include/core/type_traits.hpp:51:84: error: template argument 1 is invalid
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^
/opt/local/include/core/type_traits.hpp:51:32: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'?
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^~~~~~~~~
| is_same
/opt/local/include/core/type_traits.hpp:51:84: error: template argument 1 is invalid
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^
/opt/local/include/core/type_traits.hpp:51:32: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'?
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^~~~~~~~~
| is_same
/opt/local/include/core/type_traits.hpp:51:84: error: template argument 1 is invalid
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^
/opt/local/include/core/type_traits.hpp:51:32: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'?
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^~~~~~~~~
| is_same
/opt/local/include/core/type_traits.hpp:51:84: error: template argument 1 is invalid
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^
In file included from /opt/local/include/core/archive.hpp:24:
/opt/local/include/core/type_traits.hpp: At global scope:
/opt/local/include/core/type_traits.hpp:51:32: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'?
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^~~~~~~~~
| is_same
/opt/local/include/core/type_traits.hpp:51:84: error: template argument 1 is invalid
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^
/opt/local/include/core/type_traits.hpp:51:32: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'?
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^~~~~~~~~
| is_same
/opt/local/include/core/type_traits.hpp:51:84: error: template argument 1 is invalid
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^
/opt/local/include/core/type_traits.hpp:51:32: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'?
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^~~~~~~~~
| is_same
/opt/local/include/core/type_traits.hpp:51:84: error: template argument 1 is invalid
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^
/opt/local/include/core/type_traits.hpp:51:9: error: invalid use of template-name 'std::enable_if_t' without an argument list
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^~~
In file included from /opt/local/include/gcc13/c++/bits/stl_pair.h:60,
from /opt/local/include/gcc13/c++/bits/stl_algobase.h:64,
from /opt/local/include/gcc13/c++/bits/stl_tree.h:63,
from /opt/local/include/gcc13/c++/map:62,
from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_gmsh/gmsh/work/gmsh-4.12.2-source/src/common/GmshMessage.h:9,
from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_gmsh/gmsh/work/gmsh-4.12.2-source/contrib/Netgen/nglib_gmsh.cpp:4:
/opt/local/include/gcc13/c++/type_traits:2610:11: note: 'template<bool _Cond, class _Tp> using std::enable_if_t = typename std::enable_if::type' declared here
2610 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~
/opt/local/include/core/type_traits.hpp:51:25: error: expected initializer before '<' token
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^
/opt/local/include/core/type_traits.hpp:51:32: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'?
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^~~~~~~~~
| is_same
/opt/local/include/core/type_traits.hpp:51:84: error: template argument 1 is invalid
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^
/opt/local/include/core/type_traits.hpp:51:32: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'?
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^~~~~~~~~
| is_same
/opt/local/include/core/type_traits.hpp:51:84: error: template argument 1 is invalid
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^
/opt/local/include/core/type_traits.hpp:51:32: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'?
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^~~~~~~~~
| is_same
/opt/local/include/core/type_traits.hpp:51:84: error: template argument 1 is invalid
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^
/opt/local/include/core/type_traits.hpp:51:9: error: invalid use of template-name 'std::enable_if_t' without an argument list
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^~~
In file included from /opt/local/include/gcc13/c++/bits/move.h:37,
from /opt/local/include/gcc13/c++/bits/exception_ptr.h:41,
from /opt/local/include/gcc13/c++/exception:164,
from /opt/local/include/gcc13/c++/ios:41,
from /opt/local/include/gcc13/c++/ostream:40,
from /opt/local/include/gcc13/c++/iostream:41,
from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_gmsh/gmsh/work/gmsh-4.12.2-source/contrib/Netgen/libsrc/include/mystdlib.h:9,
from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_gmsh/gmsh/work/gmsh-4.12.2-source/contrib/Netgen/libsrc/general/array.cpp:15:
/opt/local/include/gcc13/c++/type_traits:2610:11: note: 'template<bool _Cond, class _Tp> using std::enable_if_t = typename std::enable_if::type' declared here
2610 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~
/opt/local/include/core/type_traits.hpp:51:25: error: expected initializer before '<' token
51 | std::enable_if_t<!std::is_same_v<decltype(std::declval<T2>().Range()), void>, std::true_type>
| ^
In file included from /opt/local/include/core/exception.hpp:8,
from /opt/local/include/core/archive.hpp:22,
from /opt/local/include/core/ngcore.hpp:4,
from /opt/local/include/eigen3/../general/../include/mydefs.hpp:14,
from /opt/local/include/eigen3/../general/myadt.hpp:16,
from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_gmsh/gmsh/work/gmsh-4.12.2-source/contrib/Netgen/libsrc/include/myadt.hpp:1,
from /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_science_gmsh/gmsh/work/gmsh-4.12.2-source/contrib/Netgen/libsrc/general/bitarray.cpp:12:
/opt/local/include/core/ngcore_api.hpp:99:44: error: 'std::align_val_t' has not been declared
99 | inline void * operator new (size_t s, std::align_val_t al)
| ^~~~~~~~~~~
In file included from /opt/local/include/core/archive.hpp:25:
/opt/local/include/core/utils.hpp:101:42: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'?
101 | inline std::string ToLower( const std::filesystem::path & p )
| ^~~~~~~~~~
| system
/opt/local/include/core/utils.hpp:101:59: error: expected unqualified-id before '&' token
101 | inline std::string ToLower( const std::filesystem::path & p )
| ^
/opt/local/include/core/utils.hpp:101:58: error: expected ')' before '&' token
101 | inline std::string ToLower( const std::filesystem::path & p )
| ~ ^~
| )
/opt/local/include/core/utils.hpp:101:61: error: expected initializer before 'p'
101 | inline std::string ToLower( const std::filesystem::path & p )
| ^
/opt/local/include/core/utils.hpp:265:48: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'?
265 | struct IsIC_trait<T, std::enable_if_t<std::is_same_v<T, IC<T::value>> == true, int> > {
| ^~~~~~~~~
| is_same
/opt/local/include/core/utils.hpp:265:48: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'?
265 | struct IsIC_trait<T, std::enable_if_t<std::is_same_v<T, IC<T::value>> == true, int> > {
| ^~~~~~~~~
| is_same
/opt/local/include/core/utils.hpp:265:72: error: template argument 1 is invalid
265 | struct IsIC_trait<T, std::enable_if_t<std::is_same_v<T, IC<T::value>> == true, int> > {
| ^~
/opt/local/include/core/utils.hpp:265:87: error: wrong number of template arguments (3, should be at least 1)
265 | struct IsIC_trait<T, std::enable_if_t<std::is_same_v<T, IC<T::value>> == true, int> > {
| ^
/opt/local/include/core/utils.hpp:260:12: note: provided for 'template<class T, class Enable> struct ngcore::detail::IsIC_trait'
260 | struct IsIC_trait {
| ^~~~~~~~~~
/opt/local/include/core/utils.hpp:265:89: error: expected unqualified-id before '>' token
265 | struct IsIC_trait<T, std::enable_if_t<std::is_same_v<T, IC<T::value>> == true, int> > {
| ^
/opt/local/include/core/utils.hpp:348:19: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'?
348 | NGCORE_API std::filesystem::path GetTempFilename();
| ^~~~~~~~~~
| system
/opt/local/include/core/ngcore_api.hpp: In function 'void* operator new(size_t, int)':
/opt/local/include/core/ngcore_api.hpp:101:17: error: '__STDCPP_DEFAULT_NEW_ALIGNMENT__' was not declared in this scope
101 | if (int(al) > __STDCPP_DEFAULT_NEW_ALIGNMENT__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: At global scope:
/opt/local/include/core/ngcore_api.hpp:107:46: error: 'std::align_val_t' has not been declared
107 | inline void * operator new[] (size_t s, std::align_val_t al)
| ^~~~~~~~~~~
/opt/local/include/core/archive.hpp: In function 'T* ngcore::detail::constructIfPossible(std::tuple<_Args2 ...>)':
/opt/local/include/core/archive.hpp:68:25: error: 'is_constructible_v' is not a member of 'std'; did you mean 'is_constructible'?
68 | if constexpr(std::is_constructible_v<T, TArgs...>)
| ^~~~~~~~~~~~~~~~~~
| is_constructible
/opt/local/include/core/archive.hpp:68:45: error: expected primary-expression before ',' token
68 | if constexpr(std::is_constructible_v<T, TArgs...>)
| ^
/opt/local/include/core/archive.hpp:68:52: error: expected primary-expression before '...' token
68 | if constexpr(std::is_constructible_v<T, TArgs...>)
| ^~~
/opt/local/include/core/archive.hpp:68:52: error: expected ')' before '...' token
68 | if constexpr(std::is_constructible_v<T, TArgs...>)
| ~ ^~~
| )
/opt/local/include/core/archive.hpp: In function 'T* ngcore::detail::constructIfPossible()':
/opt/local/include/core/archive.hpp:76:25: error: 'is_constructible_v' is not a member of 'std'; did you mean 'is_constructible'?
76 | if constexpr(std::is_constructible_v<T>)
| ^~~~~~~~~~~~~~~~~~
| is_constructible
/opt/local/include/core/archive.hpp:76:45: error: expected primary-expression before '>' token
76 | if constexpr(std::is_constructible_v<T>)
| ^
/opt/local/include/core/archive.hpp:76:46: error: expected primary-expression before ')' token
76 | if constexpr(std::is_constructible_v<T>)
| ^
/opt/local/include/core/archive.hpp: At global scope:
/opt/local/include/core/archive.hpp:238:40: error: 'std::byte' has not been declared
238 | virtual Archive & operator & (std::byte & d) = 0;
| ^~~~
/opt/local/include/core/archive.hpp:241:23: error: 'virtual ngcore::Archive& ngcore::Archive::operator&(int&)' cannot be overloaded with 'virtual ngcore::Archive& ngcore::Archive::operator&(int&)'
241 | virtual Archive & operator & (int & i) = 0;
| ^~~~~~~~
/opt/local/include/core/archive.hpp:238:23: note: previous declaration 'virtual ngcore::Archive& ngcore::Archive::operator&(int&)'
238 | virtual Archive & operator & (std::byte & d) = 0;
| ^~~~~~~~
/opt/local/include/core/archive.hpp:355:30: error: 'std::optional' has not been declared
355 | Archive& operator& (std::optional<T>& opt)
| ^~~~~~~~
/opt/local/include/core/archive.hpp:355:38: error: expected ',' or '...' before '<' token
355 | Archive& operator& (std::optional<T>& opt)
| ^
/opt/local/include/core/archive.hpp:398:32: error: 'std::byte' has not been declared
398 | virtual Archive & Do (std::byte * d, size_t n)
| ^~~~
/opt/local/include/core/archive.hpp:404:23: error: 'virtual ngcore::Archive& ngcore::Archive::Do(int*, size_t)' cannot be overloaded with 'virtual ngcore::Archive& ngcore::Archive::Do(int*, size_t)'
404 | virtual Archive & Do (int * i, size_t n)
| ^~
/opt/local/include/core/archive.hpp:398:23: note: previous declaration 'virtual ngcore::Archive& ngcore::Archive::Do(int*, size_t)'
398 | virtual Archive & Do (std::byte * d, size_t n)
| ^~
/opt/local/include/core/archive.hpp:458:38: error: 'std::byte' has not been declared
458 | constexpr void CopyToBin (std::byte * ptr, T & first, Trest & ...rest) const
| ^~~~
/opt/local/include/core/archive.hpp:463:36: error: 'std::byte' has not been declared
463 | constexpr void CopyToBin (std::byte * ptr) const { }
| ^~~~
/opt/local/include/core/archive.hpp:466:40: error: 'std::byte' has not been declared
466 | constexpr void CopyFromBin (std::byte * ptr, T & first, Trest & ...rest) const
| ^~~~
/opt/local/include/core/archive.hpp:471:38: error: 'std::byte' has not been declared
471 | constexpr void CopyFromBin (std::byte * ptr) const { }
| ^~~~
/opt/local/include/core/ngcore_api.hpp: In function 'void* operator new [](size_t, int)':
/opt/local/include/core/ngcore_api.hpp:109:17: error: '__STDCPP_DEFAULT_NEW_ALIGNMENT__' was not declared in this scope
109 | if (int(al) > __STDCPP_DEFAULT_NEW_ALIGNMENT__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: At global scope:
/opt/local/include/core/ngcore_api.hpp:115:48: error: 'std::align_val_t' has not been declared
115 | inline void operator delete ( void* ptr, std::align_val_t al ) noexcept
| ^~~~~~~~~~~
/opt/local/include/core/archive.hpp: In member function 'ngcore::Archive& ngcore::Archive::operator&(int)':
/opt/local/include/core/archive.hpp:357:26: error: 'opt' was not declared in this scope
357 | bool has_value = opt.has_value();
| ^~~
/opt/local/include/core/archive.hpp: In member function 'ngcore::Archive& ngcore::Archive::DoPacked(Types& ...)':
/opt/local/include/core/archive.hpp:439:16: error: 'byte' is not a member of 'std'
439 | std::byte mem[totsize];
| ^~~~
/opt/local/include/core/archive.hpp:439:16: note: 'std::byte' is only available from C++17 onwards
/opt/local/include/core/archive.hpp:442:27: error: 'mem' was not declared in this scope
442 | CopyToBin (&mem[0], args...);
| ^~~
/opt/local/include/core/archive.hpp:447:19: error: 'mem' was not declared in this scope
447 | Do(&mem[0], totsize);
| ^~~
/opt/local/include/core/archive.hpp: In member function 'ngcore::Archive& ngcore::Archive::operator&(std::tuple<_Args1 ...>&)':
/opt/local/include/core/archive.hpp:698:12: error: 'apply' is not a member of 'std'
698 | std::apply([this](auto&... arg) { std::make_tuple(((*this) & arg).IsParallel()...);}, t);
| ^~~~~
/opt/local/include/core/archive.hpp:698:12: note: 'std::apply' is only available from C++17 onwards
/opt/local/include/core/ngcore_api.hpp: In function 'void operator delete(void*, int)':
/opt/local/include/core/ngcore_api.hpp:117:17: error: '__STDCPP_DEFAULT_NEW_ALIGNMENT__' was not declared in this scope
117 | if (int(al) > __STDCPP_DEFAULT_NEW_ALIGNMENT__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: At global scope:
/opt/local/include/core/ngcore_api.hpp:123:48: error: 'std::align_val_t' has not been declared
123 | inline void operator delete[]( void* ptr, std::align_val_t al ) noexcept
| ^~~~~~~~~~~
/opt/local/include/core/archive.hpp: At global scope:
/opt/local/include/core/archive.hpp:829:33: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'?
829 | BinaryOutArchive(const std::filesystem::path& filename)
| ^~~~~~~~~~
| system
/opt/local/include/core/archive.hpp:829:49: error: expected unqualified-id before '&' token
829 | BinaryOutArchive(const std::filesystem::path& filename)
| ^
/opt/local/include/core/archive.hpp:829:49: error: expected ')' before '&' token
829 | BinaryOutArchive(const std::filesystem::path& filename)
| ~ ^
| )
/opt/local/include/core/archive.hpp:829:49: error: constructors may not be ref-qualified
/opt/local/include/core/archive.hpp:829:49: error: expected ';' at end of member declaration
829 | BinaryOutArchive(const std::filesystem::path& filename)
| ^
| ;
/opt/local/include/core/ngcore_api.hpp: In function 'void operator delete [](void*, int)':
/opt/local/include/core/ngcore_api.hpp:125:17: error: '__STDCPP_DEFAULT_NEW_ALIGNMENT__' was not declared in this scope
125 | if (int(al) > __STDCPP_DEFAULT_NEW_ALIGNMENT__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: At global scope:
/opt/local/include/core/ngcore_api.hpp:131:64: error: 'std::align_val_t' has not been declared
131 | inline void operator delete ( void* ptr, std::size_t sz, std::align_val_t al ) noexcept
| ^~~~~~~~~~~
/opt/local/include/core/archive.hpp:829:51: error: 'filename' does not name a type
829 | BinaryOutArchive(const std::filesystem::path& filename)
| ^~~~~~~~
/opt/local/include/core/archive.hpp:837:32: error: 'std::byte' has not been declared
837 | Archive & operator & (std::byte & d) override
| ^~~~
/opt/local/include/core/archive.hpp:843:15: error: 'ngcore::Archive& ngcore::BinaryOutArchive::operator&(int&)' cannot be overloaded with 'ngcore::Archive& ngcore::BinaryOutArchive::operator&(int&)'
843 | Archive & operator & (int & i) override
| ^~~~~~~~
/opt/local/include/core/archive.hpp:837:15: note: previous declaration 'ngcore::Archive& ngcore::BinaryOutArchive::operator&(int&)'
837 | Archive & operator & (std::byte & d) override
| ^~~~~~~~
/opt/local/include/core/archive.hpp:894:24: error: 'std::byte' has not been declared
894 | Archive & Do (std::byte * d, size_t n) override
| ^~~~
/opt/local/include/core/archive.hpp: In member function 'virtual ngcore::Archive& ngcore::BinaryOutArchive::Do(int*, size_t)':
/opt/local/include/core/archive.hpp:897:63: error: 'byte' is not a member of 'std'
897 | stream->write(reinterpret_cast<char*>(d), n*sizeof(std::byte)); return *this;
| ^~~~
/opt/local/include/core/archive.hpp:897:63: note: 'std::byte' is only available from C++17 onwards
/opt/local/include/core/archive.hpp: At global scope:
/opt/local/include/core/archive.hpp:925:33: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'?
925 | BinaryInArchive (const std::filesystem::path& filename)
| ^~~~~~~~~~
| system
/opt/local/include/core/archive.hpp:925:49: error: expected unqualified-id before '&' token
925 | BinaryInArchive (const std::filesystem::path& filename)
| ^
/opt/local/include/core/archive.hpp:925:49: error: expected ')' before '&' token
925 | BinaryInArchive (const std::filesystem::path& filename)
| ~ ^
| )
/opt/local/include/core/archive.hpp:925:49: error: constructors may not be ref-qualified
/opt/local/include/core/archive.hpp:925:49: error: expected ';' at end of member declaration
925 | BinaryInArchive (const std::filesystem::path& filename)
| ^
| ;
/opt/local/include/core/archive.hpp:925:51: error: 'filename' does not name a type
925 | BinaryInArchive (const std::filesystem::path& filename)
| ^~~~~~~~
/opt/local/include/core/archive.hpp:929:32: error: 'std::byte' has not been declared
929 | Archive & operator & (std::byte & d) override
| ^~~~
/opt/local/include/core/archive.hpp:935:15: error: 'ngcore::Archive& ngcore::BinaryInArchive::operator&(int&)' cannot be overloaded with 'ngcore::Archive& ngcore::BinaryInArchive::operator&(int&)'
935 | Archive & operator & (int & i) override
| ^~~~~~~~
/opt/local/include/core/archive.hpp:929:15: note: previous declaration 'ngcore::Archive& ngcore::BinaryInArchive::operator&(int&)'
929 | Archive & operator & (std::byte & d) override
| ^~~~~~~~
/opt/local/include/core/archive.hpp:993:24: error: 'std::byte' has not been declared
993 | Archive & Do (std::byte * d, size_t n) override
| ^~~~
/opt/local/include/core/archive.hpp:997:15: error: 'ngcore::Archive& ngcore::BinaryInArchive::Do(int*, size_t)' cannot be overloaded with 'ngcore::Archive& ngcore::BinaryInArchive::Do(int*, size_t)'
997 | Archive & Do (int * i, size_t n) override
| ^~
/opt/local/include/core/archive.hpp:993:15: note: previous declaration 'ngcore::Archive& ngcore::BinaryInArchive::Do(int*, size_t)'
993 | Archive & Do (std::byte * d, size_t n) override
| ^~
/opt/local/include/core/archive.hpp: In member function 'virtual ngcore::Archive& ngcore::BinaryInArchive::Do(int*, size_t)':
/opt/local/include/core/archive.hpp:994:62: error: 'byte' is not a member of 'std'
994 | { stream->read(reinterpret_cast<char*>(d), n*sizeof(std::byte)); return *this; } // NOLINT
| ^~~~
/opt/local/include/core/archive.hpp:994:62: note: 'std::byte' is only available from C++17 onwards
/opt/local/include/core/archive.hpp: At global scope:
/opt/local/include/core/archive.hpp:1025:32: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'?
1025 | TextOutArchive (const std::filesystem::path& filename) :
| ^~~~~~~~~~
| system
/opt/local/include/core/archive.hpp:1025:48: error: expected unqualified-id before '&' token
1025 | TextOutArchive (const std::filesystem::path& filename) :
| ^
/opt/local/include/core/archive.hpp:1025:48: error: expected ')' before '&' token
1025 | TextOutArchive (const std::filesystem::path& filename) :
| ~ ^
| )
/opt/local/include/core/archive.hpp:1025:48: error: constructors may not be ref-qualified
/opt/local/include/core/archive.hpp:1025:48: error: expected ';' at end of member declaration
1025 | TextOutArchive (const std::filesystem::path& filename) :
| ^
| ;
/opt/local/include/core/archive.hpp:1025:50: error: 'filename' does not name a type
1025 | TextOutArchive (const std::filesystem::path& filename) :
| ^~~~~~~~
/opt/local/include/core/archive.hpp:1029:32: error: 'std::byte' has not been declared
1029 | Archive & operator & (std::byte & d) override
| ^~~~
/opt/local/include/core/archive.hpp:1035:15: error: 'ngcore::Archive& ngcore::TextOutArchive::operator&(int&)' cannot be overloaded with 'ngcore::Archive& ngcore::TextOutArchive::operator&(int&)'
1035 | Archive & operator & (int & i) override
| ^~~~~~~~
/opt/local/include/core/archive.hpp:1029:15: note: previous declaration 'ngcore::Archive& ngcore::TextOutArchive::operator&(int&)'
1029 | Archive & operator & (std::byte & d) override
| ^~~~~~~~
In file included from /opt/local/include/core/archive.hpp:25:
/opt/local/include/core/utils.hpp:101:42: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'?
101 | inline std::string ToLower( const std::filesystem::path & p )
| ^~~~~~~~~~
| system
/opt/local/include/core/utils.hpp:101:59: error: expected unqualified-id before '&' token
101 | inline std::string ToLower( const std::filesystem::path & p )
| ^
/opt/local/include/core/utils.hpp:101:58: error: expected ')' before '&' token
101 | inline std::string ToLower( const std::filesystem::path & p )
| ~ ^~
| )
/opt/local/include/core/utils.hpp:101:61: error: expected initializer before 'p'
101 | inline std::string ToLower( const std::filesystem::path & p )
| ^
/opt/local/include/core/ngcore_api.hpp: In function 'void operator delete(void*, std::size_t, int)':
/opt/local/include/core/ngcore_api.hpp:133:17: error: '__STDCPP_DEFAULT_NEW_ALIGNMENT__' was not declared in this scope
133 | if (int(al) > __STDCPP_DEFAULT_NEW_ALIGNMENT__)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/core/ngcore_api.hpp: At global scope:
/opt/local/include/core/ngcore_api.hpp:139:64: error: 'std::align_val_t' has not been declared
139 | inline void operator delete[]( void* ptr, std::size_t sz, std::align_val_t al ) noexcept
| ^~~~~~~~~~~
/opt/local/include/core/utils.hpp:265:48: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'?
265 | struct IsIC_trait<T, std::enable_if_t<std::is_same_v<T, IC<T::value>> == true, int> > {
| ^~~~~~~~~
| is_same
/opt/local/include/core/utils.hpp:265:48: error: 'is_same_v' is not a member of 'std'; did you mean 'is_same'?
265 | struct IsIC_trait<T, std::enable_if_t<std::is_same_v<T, IC<T::value>> == true, int> > {
| ^~~~~~~~~
| is_same
/opt/local/include/core/utils.hpp:265:72: error: template argument 1 is invalid
265 | struct IsIC_trait<T, std::enable_if_t<std::is_same_v<T, IC<T::value>> == true, int> > {
| ^~
/opt/local/include/core/utils.hpp:265:87: error: wrong number of template arguments (3, should be at least 1)
265 | struct IsIC_trait<T, std::enable_if_t<std::is_same_v<T, IC<T::value>> == true, int> > {
| ^
/opt/local/include/core/utils.hpp:260:12: note: provided for 'template<class T, class Enable> struct ngcore::detail::IsIC_trait'
260 | struct IsIC_trait {
| ^~~~~~~~~~
/opt/local/include/core/utils.hpp:265:89: error: expected unqualified-id before '>' token
265 | struct IsIC_trait<T, std::enable_if_t<std::is_same_v<T, IC<T::value>> == true, int> > {
| ^
/opt/local/include/core/utils.hpp:348:19: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'?
348 | NGCORE_API std::filesystem::path GetTempFilename();
| ^~~~~~~~~~
| system
/opt/local/include/core/archive.hpp:1080:31: error: 'filesystem' in namespace 'std' does not name a type; did you mean 'system'?
1080 | TextInArchive (const std::filesystem::path& filename)
| ^~~~~~~~~~
| system
/opt/local/include/core/archive.hpp:1080:47: error: expected unqualified-id before '&' token
1080 | TextInArchive (const std::filesystem::path& filename)
| ^
/opt/local/include/core/archive.hpp:1080:47: error: expected ')' before '&' token
1080 | TextInArchive (const std::filesystem::path& filename)
| ~ ^
| )
/opt/local/include/core/archive.hpp:1080:47: error: constructors may not be ref-qualified
/opt/local/include/core/archive.hpp:1080:47: error: expected ';' at end of member declaration
1080 | TextInArchive (const std::filesystem::path& filename)
| ^
| ;
/opt/local/include/core/archive.hpp:1080:49: error: 'filename' does not name a type
1080 | TextInArchive (const std::filesystem::path& filename)
| ^~~~~~~~
/opt/local/include/core/archive.hpp:1084:32: error: 'std::byte' has not been declared
1084 | Archive & operator & (std::byte & d) override
| ^~~~
/opt/local/include/core/archive.hpp:1090:15: error: 'ngcore::Archive& ngcore::TextInArchive::operator&(int&)' cannot be overloaded with 'ngcore::Archive& ngcore::TextInArchive::operator&(int&)'
1090 | Archive & operator & (int & i) override
| ^~~~~~~~
/opt/local/include/core/archive.hpp:1084:15: note: previous declaration 'ngcore::Archive& ngcore::TextInArchive::operator&(int&)'
1084 | Archive & operator & (std::byte & d) override
| ^~~~~~~~
/opt/local/include/core/archive.hpp: In member function 'virtual ngcore::Archive& ngcore::TextInArchive::operator&(int&)':
/opt/local/include/core/archive.hpp:1085:41: error: 'byte' is not a member of 'std'
1085 | { int tmp; *stream >> tmp; d = std::byte(tmp); return *this; }
| ^~~~
/opt/local/include/core/archive.hpp:1085:41: note: 'std::byte' is only available from C++17 onwards
/opt/local/include/core/archive.hpp: In function 'T* ngcore::detail::constructIfPossible(std::tuple<_Types ...>)':
/opt/local/include/core/archive.hpp:68:25: error: 'is_constructible_v' is not a member of 'std'; did you mean 'is_constructible'?
68 | if constexpr(std::is_constructible_v<T, TArgs...>)
| ^~~~~~~~~~~~~~~~~~
| is_constructible
The text was updated successfully, but these errors were encountered:
CMakeLists
ask for C++11, however the build fails even with C++14. In fact, it seems to require C++17:The text was updated successfully, but these errors were encountered: