mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Cleanup
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@302 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
6a66b47970
commit
73fadc7151
1 changed files with 7 additions and 6 deletions
|
|
@ -66,8 +66,8 @@ namespace detail3
|
||||||
virtual void serialize( std::ostream& s ) const
|
virtual void serialize( std::ostream& s ) const
|
||||||
{
|
{
|
||||||
// if an error about an ambiguous conversion is generated by the
|
// if an error about an ambiguous conversion is generated by the
|
||||||
// line below it means the easiest solution is likely to be to add
|
// line below the solution is to add a serialization operator to a
|
||||||
// a serialization operator to a mock::stream for T
|
// mock::stream for T
|
||||||
s << *t_;
|
s << *t_;
|
||||||
}
|
}
|
||||||
const T* t_;
|
const T* t_;
|
||||||
|
|
@ -106,7 +106,8 @@ namespace detail3
|
||||||
|
|
||||||
template< typename T >
|
template< typename T >
|
||||||
BOOST_DEDUCED_TYPENAME boost::disable_if<
|
BOOST_DEDUCED_TYPENAME boost::disable_if<
|
||||||
boost::function_types::is_callable_builtin< T >, stream&
|
boost::function_types::is_callable_builtin< T >,
|
||||||
|
stream&
|
||||||
>::type
|
>::type
|
||||||
operator<<( stream& s, const T& t )
|
operator<<( stream& s, const T& t )
|
||||||
{
|
{
|
||||||
|
|
@ -123,8 +124,8 @@ namespace detail2
|
||||||
void serialize( stream& s, const T& t )
|
void serialize( stream& s, const T& t )
|
||||||
{
|
{
|
||||||
// if an error about an ambiguous conversion is generated by the
|
// if an error about an ambiguous conversion is generated by the
|
||||||
// line below it means the easiest solution is likely to be to add
|
// line below the solution is to add a serialization operator to a
|
||||||
// a serialization operator to a mock::stream for T
|
// mock::stream for T
|
||||||
s << t;
|
s << t;
|
||||||
}
|
}
|
||||||
inline void serialize( stream& s, bool b )
|
inline void serialize( stream& s, bool b )
|
||||||
|
|
@ -136,7 +137,7 @@ namespace detail2
|
||||||
{
|
{
|
||||||
s << '"' << str << '"';
|
s << '"' << str << '"';
|
||||||
}
|
}
|
||||||
inline void serialize( stream& s, const char* str )
|
inline void serialize( stream& s, const char* const str )
|
||||||
{
|
{
|
||||||
s << '"' << str << '"';
|
s << '"' << str << '"';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue