mirror of
https://github.com/boostorg/concept_check.git
synced 2025-07-31 13:07:33 +02:00
added "inline" in a couple places
[SVN r11160]
This commit is contained in:
@@ -26,10 +26,16 @@
|
|||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
|
|
||||||
template <class T> 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 <class T> inline void ignore_unused_variable_warning(const T&) { }
|
||||||
|
|
||||||
template <class Concept>
|
template <class Concept>
|
||||||
void function_requires()
|
inline void function_requires()
|
||||||
{
|
{
|
||||||
#if !defined(NDEBUG)
|
#if !defined(NDEBUG)
|
||||||
void (Concept::*x)() = BOOST_FPTR Concept::constraints;
|
void (Concept::*x)() = BOOST_FPTR Concept::constraints;
|
||||||
|
Reference in New Issue
Block a user