From: Matthias Maier Date: Wed, 9 Aug 2017 00:33:12 +0000 (-0500) Subject: Merge pull request #4738 from drwells/remove-boost-bind-compiler-bug X-Git-Tag: v9.0.0-rc1~1330 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e685824578583452a60df5633c2b3cef24a6a23f;p=dealii.git Merge pull request #4738 from drwells/remove-boost-bind-compiler-bug Remove DEAL_II_BOOST_BIND_COMPILER_BUG. --- e685824578583452a60df5633c2b3cef24a6a23f diff --cc cmake/checks/check_03_compiler_bugs.cmake index 2e19a771eb,c07b9aaea0..49a63715ee --- a/cmake/checks/check_03_compiler_bugs.cmake +++ b/cmake/checks/check_03_compiler_bugs.cmake @@@ -175,39 -223,38 +175,7 @@@ CHECK_CXX_COMPILER_BUG ) -# -# Check for GCC bug 36052, see -# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36052 -# -# - Wolfgang Bangerth, Matthias Maier, rewritten 2012 -# - -CHECK_CXX_COMPILER_BUG( - " - struct S { - typedef double value_type; - }; - - template struct Traits { - typedef const typename T::value_type dereference_type; - }; - - template struct ConstIterator { - typedef typename Traits::dereference_type dereference_type; - - dereference_type operator * () const { return 0; } - }; - template class ConstIterator; - int main(){return 0;} - " - DEAL_II_TYPE_QUALIFIER_BUG) - -IF(DEAL_II_TYPE_QUALIFIER_BUG) - ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS -Wno-ignored-qualifiers) -ENDIF() - - # - # On Mac OS X, gcc appears to have a bug that prevents us from - # compiling a bit of code that involves boost::bind. Check for - # that. - # - # - Wolfgang Bangerth, Matthias Maier, rewritten 2012 - # - IF(DEAL_II_HAVE_BUNDLED_DIRECTORY) - CHECK_CXX_COMPILER_BUG( - " - #include - #include - #include \"${BOOST_FOLDER}/include/boost/bind.hpp\" - - template - void bug_function (number test) - { - std::cout << test << std::endl; - } - int main() - { - std::complex float_val (1., 2.); - boost::bind(&bug_function >, - float_val)(); - return 0; - } - " - DEAL_II_BOOST_BIND_COMPILER_BUG - ) - ENDIF() - - # # Microsoft Visual C++ has a bug where the resulting object # from calling std::bind does not have a const operator(), diff --cc include/deal.II/base/config.h.in index baab90e2a1,0700fe7bfb..609e390f8f --- a/include/deal.II/base/config.h.in +++ b/include/deal.II/base/config.h.in @@@ -67,8 -67,8 +67,7 @@@ #cmakedefine DEAL_II_TEMPL_SPEC_FRIEND_BUG #cmakedefine DEAL_II_MEMBER_ARRAY_SPECIALIZATION_BUG -#cmakedefine DEAL_II_MEMBER_VAR_SPECIALIZATION_BUG #cmakedefine DEAL_II_CONST_MEMBER_DEDUCTION_BUG - #cmakedefine DEAL_II_BOOST_BIND_COMPILER_BUG #cmakedefine DEAL_II_BIND_NO_CONST_OP_PARENTHESES #cmakedefine DEAL_II_CONSTEXPR_BUG