]> https://gitweb.dealii.org/ - dealii.git/commitdiff
remove DEAL_II_IS_TRIVIALLY_COPYABLE
authorMatthias Maier <tamiko@43-1.org>
Fri, 22 May 2020 03:09:27 +0000 (22:09 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sat, 23 May 2020 14:56:14 +0000 (09:56 -0500)
cmake/checks/check_01_cxx_features.cmake
cmake/configure/configure_1_threads.cmake
include/deal.II/base/config.h.in

index 151e50b65a078db27f549a99a7a16f5d31a089ec..f626e1b9589db28f082d5f45fdd7260500ebe936 100644 (file)
@@ -21,7 +21,6 @@
 #   DEAL_II_HAVE_CXX17
 #
 #   DEAL_II_HAVE_ATTRIBUTE_FALLTHROUGH
-#   DEAL_II_HAVE_CXX11_IS_TRIVIALLY_COPYABLE
 #   DEAL_II_HAVE_CXX14_CONSTEXPR
 #   DEAL_II_HAVE_FP_EXCEPTIONS
 #   DEAL_II_HAVE_COMPLEX_OPERATOR_OVERLOADS
@@ -269,7 +268,6 @@ ENDIF()
 UNSET_IF_CHANGED(CHECK_CXX_FEATURES_FLAGS_SAVED
   "${CMAKE_REQUIRED_FLAGS}"
   DEAL_II_HAVE_ATTRIBUTE_FALLTHROUGH
-  DEAL_II_HAVE_CXX11_IS_TRIVIALLY_COPYABLE
   DEAL_II_HAVE_CXX14_CONSTEXPR
   DEAL_II_HAVE_FP_EXCEPTIONS
   DEAL_II_HAVE_COMPLEX_OPERATOR_OVERLOADS
@@ -337,13 +335,6 @@ ENDIF()
 
 ADD_FLAGS(CMAKE_REQUIRED_FLAGS "${DEAL_II_CXX_VERSION_FLAG}")
 
-CHECK_CXX_SOURCE_COMPILES(
-  "
-  #include <type_traits>
-  int main(){ std::is_trivially_copyable<int> bob; }
-  "
-  DEAL_II_HAVE_CXX11_IS_TRIVIALLY_COPYABLE)
-
 RESET_CMAKE_REQUIRED()
 
 #
index 520f7ceaee9f914f598d65a2d048bb0ee2de90a6..c15b94b78c1f33f510043279f1f3270e7a689511 100644 (file)
@@ -151,16 +151,6 @@ MACRO(FEATURE_THREADS_CONFIGURE_EXTERNAL)
     ENDIF()
   ENDIF()
 
-  #
-  # Workaround for an issue with C++11 mode, non gcc-compilers and missing
-  # template<typename T> std::is_trivially_copyable<T>
-  #
-  IF( NOT DEAL_II_HAVE_CXX11_IS_TRIVIALLY_COPYABLE AND
-      NOT CMAKE_CXX_COMPILER_ID MATCHES "GNU" )
-    LIST(APPEND THREADS_DEFINITIONS "TBB_IMPLEMENT_CPP0X=1")
-    LIST(APPEND THREADS_USER_DEFINITIONS "TBB_IMPLEMENT_CPP0X=1")
-  ENDIF()
-
   SETUP_THREADING()
 
   LIST(APPEND THREADS_LIBRARIES ${TBB_LIBRARIES})
index 4dbecd2c0633031aaf8b5f54d527a40a3fd0dba5..61181c61faefddc2c4b92c46f6adeef5f2c3a137 100644 (file)
 
 #cmakedefine DEAL_II_HAVE_CXX17
 
-#cmakedefine DEAL_II_HAVE_CXX11_IS_TRIVIALLY_COPYABLE
 #cmakedefine DEAL_II_HAVE_CXX14_CONSTEXPR
 #cmakedefine DEAL_II_HAVE_FP_EXCEPTIONS
 #cmakedefine DEAL_II_HAVE_COMPLEX_OPERATOR_OVERLOADS

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.