diff --git a/include/boost/concept_check.hpp b/include/boost/concept_check.hpp index a193831..b853329 100644 --- a/include/boost/concept_check.hpp +++ b/include/boost/concept_check.hpp @@ -26,10 +26,16 @@ namespace boost { -template void ignore_unused_variable_warning(const T&) { } +/* + "inline" is used for ignore_unused_variable_warning() + and function_requires() to make sure there is no + overhead with g++. + */ + +template inline void ignore_unused_variable_warning(const T&) { } template -void function_requires() +inline void function_requires() { #if !defined(NDEBUG) void (Concept::*x)() = BOOST_FPTR Concept::constraints;