From: David Wells Date: Sat, 19 Aug 2017 02:51:03 +0000 (-0400) Subject: Actually remove DEAL_II_EXPLICIT_CONSTRUCTOR_BUG. X-Git-Tag: v9.0.0-rc1~1208^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=252c891bb0d5402927177d9de12088c92d348808;p=dealii.git Actually remove DEAL_II_EXPLICIT_CONSTRUCTOR_BUG. Follow-up to ac33ee15e72. --- diff --git a/cmake/checks/check_03_compiler_bugs.cmake b/cmake/checks/check_03_compiler_bugs.cmake index 49a63715ee..41888d9833 100644 --- a/cmake/checks/check_03_compiler_bugs.cmake +++ b/cmake/checks/check_03_compiler_bugs.cmake @@ -118,35 +118,6 @@ CHECK_CXX_COMPILER_BUG( ) - -# -# Some older versions of gcc compile this, despite the 'explicit' -# keyword: -# -# struct X { -# template -# explicit X(T); -# }; -# void f(X); -# int main () { f(1); } -# -# Check for this misfeature. -# -# - Wolfgang Bangerth, Matthias Maier, rewritten 2012 -# -CHECK_CXX_SOURCE_COMPILES( - " - struct X { - template - explicit X(T) {} - }; - void f(X) {} - int main() { f(1); } - " - DEAL_II_EXPLICIT_CONSTRUCTOR_BUG - ) - - # # Some older versions of gcc deduce pointers to const functions in # template contexts to pointer-to-function of const objects.