metroworks hacks

[SVN r25342]
This commit is contained in:
Thorsten Jørgen Ottosen
2004-09-22 15:24:23 +00:00
parent 0909f0cc51
commit f7ffdde09f
2 changed files with 46 additions and 2 deletions

View File

@ -84,6 +84,27 @@ namespace range_detail
// string // string
////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////
#if BOOST_WORKAROUND(__MWERKS__, <= 0x3204 ) // up to 9.3
inline const char* begin( const char* s )
{
return s;
}
inline char* begin( char* s )
{
return s;
}
inline const wchar_t* begin( const wchar_t* s )
{
return s;
}
inline wchar_t* begin( wchar_t* s )
{
return s;
}
#else
inline const char* begin( const char*& s ) inline const char* begin( const char*& s )
{ {
return s; return s;
@ -103,6 +124,7 @@ namespace range_detail
{ {
return s; return s;
} }
#endif
} // namespace 'range_detail' } // namespace 'range_detail'

View File

@ -84,6 +84,27 @@ namespace range_detail
// string // string
////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////
#if BOOST_WORKAROUND(__MWERKS__, <= 0x3204 ) // up to 9.3
inline char* end( char* s )
{
return range_detail::str_end( s );
}
inline wchar_t* end( wchar_t* s )
{
return range_detail::str_end( s );
}
inline const char* end( const char* s )
{
return range_detail::str_end( s );
}
inline const wchar_t* end( const wchar_t* s )
{
return range_detail::str_end( s );
}
#else
inline char* end( char*& s ) inline char* end( char*& s )
{ {
return range_detail::str_end( s ); return range_detail::str_end( s );
@ -103,6 +124,7 @@ namespace range_detail
{ {
return range_detail::str_end( s ); return range_detail::str_end( s );
} }
#endif
} // namespace 'range_detail' } // namespace 'range_detail'