From 528614dd4335ff1f86c335f090aff837d38e4d8f Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Fri, 24 Apr 2020 20:24:09 +0000 Subject: [PATCH] Bump C++ version as required by CGAL (#853) In file included from src/mvs/meshing.cc:39: In file included from /usr/local/include/CGAL/Delaunay_triangulation_3.h:25: In file included from /usr/local/include/CGAL/Triangulation_3.h:39: In file included from /usr/local/include/CGAL/Triangulation_data_structure_3.h:35: /usr/local/include/CGAL/iterator.h:663:11: error: no template named 'decay_t' in namespace 'std'; did you mean 'boost::decay_t'? typedef std::decay_t::type> value_type; ^~~~~ /usr/local/include/boost/type_traits/decay.hpp:42:23: note: 'boost::decay_t' declared here template using decay_t = typename decay::type; ^ In file included from src/mvs/meshing.cc:39: In file included from /usr/local/include/CGAL/Delaunay_triangulation_3.h:25: In file included from /usr/local/include/CGAL/Triangulation_3.h:39: In file included from /usr/local/include/CGAL/Triangulation_data_structure_3.h:35: /usr/local/include/CGAL/iterator.h:1321:44: error: no template named 'index_sequence' in namespace 'std' auto to_tuple(std::tuple &t, std::index_sequence) ~~~~~^ /usr/local/include/CGAL/iterator.h:1321:1: error: 'auto' return without trailing return type; deduced return types are a C++14 extension auto to_tuple(std::tuple &t, std::index_sequence) ^ /usr/local/include/CGAL/iterator.h:1414:49: error: no member named 'index_sequence_for' in namespace 'std' return tuple_internal::to_tuple(*this, std::index_sequence_for{}); ~~~~~^ /usr/local/include/CGAL/iterator.h:1414:68: error: 'O' does not refer to a value return tuple_internal::to_tuple(*this, std::index_sequence_for{}); ^ /usr/local/include/CGAL/iterator.h:1333:39: note: declared here template < typename... V, typename... O > ^ /usr/local/include/CGAL/iterator.h:1419:49: error: no member named 'index_sequence_for' in namespace 'std' return tuple_internal::to_tuple(*this, std::index_sequence_for{}); ~~~~~^ /usr/local/include/CGAL/iterator.h:1419:68: error: 'O' does not refer to a value return tuple_internal::to_tuple(*this, std::index_sequence_for{}); ^ /usr/local/include/CGAL/iterator.h:1333:39: note: declared here template < typename... V, typename... O > ^ In file included from src/mvs/meshing.cc:40: In file included from /usr/local/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:20: In file included from /usr/local/include/CGAL/Simple_cartesian.h:20: In file included from /usr/local/include/CGAL/Cartesian/Cartesian_base.h:22: In file included from /usr/local/include/CGAL/Kernel/global_functions.h:25: /usr/local/include/CGAL/Kernel/hash_functions.h:25:8: error: no template named 'enable_if_t' in namespace 'std'; did you mean 'boost::enable_if_t'? inline std::enable_if_t::value, std::size_t> ^~~~~ /usr/local/include/boost/type_traits/enable_if.hpp:32:1: note: 'boost::enable_if_t' declared here using enable_if_t = typename enable_if_::type; ^ In file included from src/mvs/meshing.cc:40: In file included from /usr/local/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:20: In file included from /usr/local/include/CGAL/Simple_cartesian.h:20: In file included from /usr/local/include/CGAL/Cartesian/Cartesian_base.h:22: In file included from /usr/local/include/CGAL/Kernel/global_functions.h:25: /usr/local/include/CGAL/Kernel/hash_functions.h:47:8: error: no template named 'enable_if_t' in namespace 'std'; did you mean 'boost::enable_if_t'? inline std::enable_if_t::value, std::size_t> ^~~~~ /usr/local/include/boost/type_traits/enable_if.hpp:32:1: note: 'boost::enable_if_t' declared here using enable_if_t = typename enable_if_::type; ^ In file included from src/mvs/meshing.cc:40: In file included from /usr/local/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:20: In file included from /usr/local/include/CGAL/Simple_cartesian.h:20: In file included from /usr/local/include/CGAL/Cartesian/Cartesian_base.h:22: In file included from /usr/local/include/CGAL/Kernel/global_functions.h:25: /usr/local/include/CGAL/Kernel/hash_functions.h:57:8: error: no template named 'enable_if_t' in namespace 'std'; did you mean 'boost::enable_if_t'? inline std::enable_if_t::value, std::size_t> ^~~~~ /usr/local/include/boost/type_traits/enable_if.hpp:32:1: note: 'boost::enable_if_t' declared here using enable_if_t = typename enable_if_::type; ^ In file included from src/mvs/meshing.cc:40: In file included from /usr/local/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:20: In file included from /usr/local/include/CGAL/Simple_cartesian.h:20: In file included from /usr/local/include/CGAL/Cartesian/Cartesian_base.h:22: In file included from /usr/local/include/CGAL/Kernel/global_functions.h:25: /usr/local/include/CGAL/Kernel/hash_functions.h:66:8: error: no template named 'enable_if_t' in namespace 'std'; did you mean 'boost::enable_if_t'? inline std::enable_if_t::value, std::size_t> ^~~~~ /usr/local/include/boost/type_traits/enable_if.hpp:32:1: note: 'boost::enable_if_t' declared here using enable_if_t = typename enable_if_::type; ^ In file included from src/mvs/meshing.cc:40: In file included from /usr/local/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:20: In file included from /usr/local/include/CGAL/Simple_cartesian.h:20: In file included from /usr/local/include/CGAL/Cartesian/Cartesian_base.h:22: In file included from /usr/local/include/CGAL/Kernel/global_functions.h:25: /usr/local/include/CGAL/Kernel/hash_functions.h:75:8: error: no template named 'enable_if_t' in namespace 'std'; did you mean 'boost::enable_if_t'? inline std::enable_if_t::value, std::size_t> ^~~~~ /usr/local/include/boost/type_traits/enable_if.hpp:32:1: note: 'boost::enable_if_t' declared here using enable_if_t = typename enable_if_::type; ^ In file included from src/mvs/meshing.cc:40: In file included from /usr/local/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:20: In file included from /usr/local/include/CGAL/Simple_cartesian.h:20: In file included from /usr/local/include/CGAL/Cartesian/Cartesian_base.h:22: In file included from /usr/local/include/CGAL/Kernel/global_functions.h:25: /usr/local/include/CGAL/Kernel/hash_functions.h:84:8: error: no template named 'enable_if_t' in namespace 'std'; did you mean 'boost::enable_if_t'? inline std::enable_if_t::value, std::size_t> ^~~~~ /usr/local/include/boost/type_traits/enable_if.hpp:32:1: note: 'boost::enable_if_t' declared here using enable_if_t = typename enable_if_::type; ^ In file included from src/mvs/meshing.cc:40: In file included from /usr/local/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:20: In file included from /usr/local/include/CGAL/Simple_cartesian.h:20: In file included from /usr/local/include/CGAL/Cartesian/Cartesian_base.h:22: In file included from /usr/local/include/CGAL/Kernel/global_functions.h:25: /usr/local/include/CGAL/Kernel/hash_functions.h:93:8: error: no template named 'enable_if_t' in namespace 'std'; did you mean 'boost::enable_if_t'? inline std::enable_if_t::value, std::size_t> ^~~~~ /usr/local/include/boost/type_traits/enable_if.hpp:32:1: note: 'boost::enable_if_t' declared here using enable_if_t = typename enable_if_::type; ^ In file included from src/mvs/meshing.cc:40: In file included from /usr/local/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:20: In file included from /usr/local/include/CGAL/Simple_cartesian.h:20: In file included from /usr/local/include/CGAL/Cartesian/Cartesian_base.h:22: In file included from /usr/local/include/CGAL/Kernel/global_functions.h:25: /usr/local/include/CGAL/Kernel/hash_functions.h:102:8: error: no template named 'enable_if_t' in namespace 'std'; did you mean 'boost::enable_if_t'? inline std::enable_if_t::value, std::size_t> ^~~~~ /usr/local/include/boost/type_traits/enable_if.hpp:32:1: note: 'boost::enable_if_t' declared here using enable_if_t = typename enable_if_::type; ^ In file included from src/mvs/meshing.cc:40: In file included from /usr/local/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:20: In file included from /usr/local/include/CGAL/Simple_cartesian.h:20: In file included from /usr/local/include/CGAL/Cartesian/Cartesian_base.h:22: In file included from /usr/local/include/CGAL/Kernel/global_functions.h:25: /usr/local/include/CGAL/Kernel/hash_functions.h:126:8: error: no template named 'enable_if_t' in namespace 'std'; did you mean 'boost::enable_if_t'? inline std::enable_if_t::value, std::size_t> ^~~~~ /usr/local/include/boost/type_traits/enable_if.hpp:32:1: note: 'boost::enable_if_t' declared here using enable_if_t = typename enable_if_::type; ^ In file included from src/mvs/meshing.cc:40: In file included from /usr/local/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:20: In file included from /usr/local/include/CGAL/Simple_cartesian.h:20: In file included from /usr/local/include/CGAL/Cartesian/Cartesian_base.h:22: In file included from /usr/local/include/CGAL/Kernel/global_functions.h:25: /usr/local/include/CGAL/Kernel/hash_functions.h:135:8: error: no template named 'enable_if_t' in namespace 'std'; did you mean 'boost::enable_if_t'? inline std::enable_if_t::value, std::size_t> ^~~~~ /usr/local/include/boost/type_traits/enable_if.hpp:32:1: note: 'boost::enable_if_t' declared here using enable_if_t = typename enable_if_::type; ^ In file included from src/mvs/meshing.cc:40: In file included from /usr/local/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:20: In file included from /usr/local/include/CGAL/Simple_cartesian.h:20: In file included from /usr/local/include/CGAL/Cartesian/Cartesian_base.h:22: In file included from /usr/local/include/CGAL/Kernel/global_functions.h:25: /usr/local/include/CGAL/Kernel/hash_functions.h:145:8: error: no template named 'enable_if_t' in namespace 'std'; did you mean 'boost::enable_if_t'? inline std::enable_if_t::value, std::size_t> ^~~~~ /usr/local/include/boost/type_traits/enable_if.hpp:32:1: note: 'boost::enable_if_t' declared here using enable_if_t = typename enable_if_::type; ^ In file included from src/mvs/meshing.cc:40: In file included from /usr/local/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:20: In file included from /usr/local/include/CGAL/Simple_cartesian.h:20: In file included from /usr/local/include/CGAL/Cartesian/Cartesian_base.h:22: In file included from /usr/local/include/CGAL/Kernel/global_functions.h:25: /usr/local/include/CGAL/Kernel/hash_functions.h:154:8: error: no template named 'enable_if_t' in namespace 'std'; did you mean 'boost::enable_if_t'? inline std::enable_if_t::value, std::size_t> ^~~~~ /usr/local/include/boost/type_traits/enable_if.hpp:32:1: note: 'boost::enable_if_t' declared here using enable_if_t = typename enable_if_::type; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2278e8ed0..5c32d2202 100755 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -34,7 +34,7 @@ if(IS_MSVC) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W3") elseif(IS_GNU OR IS_CLANG) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall") endif() add_subdirectory(base)