diff --git a/include/boost/concept_check.hpp b/include/boost/concept_check.hpp index 0f0dc23..4b820a7 100644 --- a/include/boost/concept_check.hpp +++ b/include/boost/concept_check.hpp @@ -19,6 +19,8 @@ #include #include #include +#include + #if defined(BOOST_MSVC) || defined(__BORLANDC__) #define BOOST_FPTR @@ -36,8 +38,9 @@ namespace boost { template inline void ignore_unused_variable_warning(const T&) { } +// the unused, defaulted parameter is a workaround for MSVC and Compaq C++ template -inline void function_requires() +inline void function_requires(type* = 0) { #if !defined(NDEBUG) void (Concept::*x)() = BOOST_FPTR Concept::constraints;