forked from boostorg/bind
Added diagnostic output.
[SVN r33754]
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <typeinfo>
|
||||||
|
|
||||||
#if defined(BOOST_MSVC) && (BOOST_MSVC < 1300)
|
#if defined(BOOST_MSVC) && (BOOST_MSVC < 1300)
|
||||||
# pragma warning(pop)
|
# pragma warning(pop)
|
||||||
@@ -37,12 +38,14 @@ struct visitor
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T> void operator()( T const & /*t*/ )
|
template<typename T> void operator()( T const & t )
|
||||||
{
|
{
|
||||||
|
std::cout << "visitor::operator()( T ): " << typeid( t ).name() << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
void operator()( int const & t )
|
void operator()( int const & t )
|
||||||
{
|
{
|
||||||
|
std::cout << "visitor::operator()( int ): " << t << std::endl;
|
||||||
hash = hash * 10 + t;
|
hash = hash * 10 + t;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user