Removed is_comparable which is sometimes ambiguous

git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@250 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2011-02-21 18:23:31 +00:00
parent cf221b928f
commit 39ccffb881
4 changed files with 4 additions and 18 deletions

View file

@ -196,10 +196,6 @@
RelativePath="..\..\src\libraries\turtle\invocation.hpp" RelativePath="..\..\src\libraries\turtle\invocation.hpp"
> >
</File> </File>
<File
RelativePath="..\..\src\libraries\turtle\is_comparable.hpp"
>
</File>
<File <File
RelativePath="..\..\src\libraries\turtle\is_formattable.hpp" RelativePath="..\..\src\libraries\turtle\is_formattable.hpp"
> >

View file

@ -214,10 +214,6 @@
RelativePath="..\..\src\tests\turtle_test\invocation_test.cpp" RelativePath="..\..\src\tests\turtle_test\invocation_test.cpp"
> >
</File> </File>
<File
RelativePath="..\..\src\tests\turtle_test\is_comparable_test.cpp"
>
</File>
<File <File
RelativePath="..\..\src\tests\turtle_test\is_formattable_test.cpp" RelativePath="..\..\src\tests\turtle_test\is_formattable_test.cpp"
> >

View file

@ -10,7 +10,6 @@
#define MOCK_CHECK_HPP_INCLUDED #define MOCK_CHECK_HPP_INCLUDED
#include "is_functor.hpp" #include "is_functor.hpp"
#include "is_comparable.hpp"
#include "constraints.hpp" #include "constraints.hpp"
#include "operators.hpp" #include "operators.hpp"
#include "format.hpp" #include "format.hpp"
@ -122,12 +121,7 @@ namespace detail
template< typename Actual, typename Functor > template< typename Actual, typename Functor >
class check< Actual, Functor, class check< Actual, Functor,
BOOST_DEDUCED_TYPENAME boost::enable_if< BOOST_DEDUCED_TYPENAME boost::enable_if<
boost::mpl::or_< detail::is_functor< Functor >
detail::is_functor< Functor >,
boost::mpl::not_<
detail::is_comparable< Actual, Functor >
>
>
>::type >::type
> : public check_base< Actual > > : public check_base< Actual >
{ {

View file

@ -335,7 +335,7 @@ namespace
struct custom_argument struct custom_argument
{ {
friend std::ostream& operator<<( std::ostream& s, const custom_argument& ) friend std::ostream& operator<<( std::ostream& s, custom_argument )
{ {
serialized = true; serialized = true;
return s; return s;
@ -344,11 +344,11 @@ namespace
struct custom_constraint struct custom_constraint
{ {
template< typename Actual > template< typename Actual >
bool operator()( Actual ) const friend bool operator==( Actual, custom_constraint )
{ {
return true; return true;
} }
friend std::ostream& operator<<( std::ostream& s, const custom_constraint& ) friend std::ostream& operator<<( std::ostream& s, custom_constraint )
{ {
serialized = true; serialized = true;
return s; return s;