mirror of
https://github.com/boostorg/concept_check.git
synced 2025-07-30 04:27:33 +02:00
fixed some compiler warnings about unused variables
[SVN r8423]
This commit is contained in:
@ -199,12 +199,14 @@ struct require_same { typedef T type; };
|
|||||||
a = a; // require assignment operator
|
a = a; // require assignment operator
|
||||||
#endif
|
#endif
|
||||||
const_constraints(a);
|
const_constraints(a);
|
||||||
|
ignore_unused_variable_warning(b);
|
||||||
}
|
}
|
||||||
void const_constraints(const TT& b) {
|
void const_constraints(const TT& b) {
|
||||||
TT c(b);
|
TT c(b);
|
||||||
#if !defined(_ITERATOR_) // back_insert_iterator broken for VC++ STL
|
#if !defined(_ITERATOR_) // back_insert_iterator broken for VC++ STL
|
||||||
a = b; // const required for argument to assignment
|
a = b; // const required for argument to assignment
|
||||||
#endif
|
#endif
|
||||||
|
ignore_unused_variable_warning(c);
|
||||||
}
|
}
|
||||||
TT a;
|
TT a;
|
||||||
};
|
};
|
||||||
@ -309,6 +311,7 @@ struct require_same { typedef T type; };
|
|||||||
{
|
{
|
||||||
void constraints() {
|
void constraints() {
|
||||||
const Return& r = f(); // require operator() member function
|
const Return& r = f(); // require operator() member function
|
||||||
|
ignore_unused_variable_warning(r);
|
||||||
}
|
}
|
||||||
Func f;
|
Func f;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user