From 32cabb604ebef38048d14985ee982507f04f0526 Mon Sep 17 00:00:00 2001 From: Jeremy Siek Date: Wed, 19 Sep 2001 20:49:17 +0000 Subject: [PATCH] added "inline" in a couple places [SVN r11160] --- include/boost/concept_check.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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;