[range]Does boost::copy_range work under VC++6 ?

29 Nov
2005
29 Nov
'05
8:48 a.m.
Hi, I heard VC6 has fatal problems in the case that 'explicit template arguments' are required. Current Implementation is: template< typename SeqT, typename Range > inline SeqT copy_range( const Range& r ) { return SeqT( begin( r ), end( r ) ); } Workaround is something like: template< typename SeqT, typename Range > inline SeqT copy_range( const Range& r BOOST_APPEND_EXPLICIT_TEMPLATE_TYPE(SeqT)) { return SeqT( boost::begin( r ), boost::end( r ) ); } Regards, MB http://p-stade.sourceforge.net/ -------------------------------------- STOP HIV/AIDS. Yahoo! JAPAN Redribbon Campaign 2005 http://pr.mail.yahoo.co.jp/redribbon/
7137
Age (days ago)
7137
Last active (days ago)
0 comments
1 participants
participants (1)
-
MB