]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Merge pull request #4738 from drwells/remove-boost-bind-compiler-bug
authorMatthias Maier <tamiko@43-1.org>
Wed, 9 Aug 2017 00:33:12 +0000 (19:33 -0500)
committerGitHub <noreply@github.com>
Wed, 9 Aug 2017 00:33:12 +0000 (19:33 -0500)
Remove DEAL_II_BOOST_BIND_COMPILER_BUG.

1  2 
cmake/checks/check_03_compiler_bugs.cmake
include/deal.II/base/config.h.in

index 2e19a771eb15db502df5c82c0aa24d596786717b,c07b9aaea0c8fa4cb005ef5d3d4db806e314eb0d..49a63715eec8c787e4e5250ef7a50f0be34e6b03
@@@ -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 <typename T> struct Traits {
 -      typedef const typename T::value_type dereference_type;
 -  };
 -
 -  template <class BlockVectorType> struct ConstIterator {
 -      typedef typename Traits<BlockVectorType>::dereference_type dereference_type;
 -
 -      dereference_type operator * () const  { return 0; }
 -  };
 -  template class ConstIterator<S>;
 -  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 <complex>
-     #include <iostream>
-     #include \"${BOOST_FOLDER}/include/boost/bind.hpp\"
-     template<typename number>
-     void bug_function (number test)
-     {
-       std::cout << test << std::endl;
-     }
-     int main()
-     {
-       std::complex<float> float_val (1., 2.);
-       boost::bind(&bug_function<std::complex<float> >,
-                   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(),
index baab90e2a130be45fc9f6ab8af3522c1a7853d41,0700fe7bfb73e646406e67df2f6fe4124270b1d1..609e390f8f979088ff2368a935591d22a0a2a64d
@@@ -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
  

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.