1 // ----------------------------------------------------------------------------
2 // msvc_disambiguater.hpp : msvc workarounds. (for put_{head|last} overloads)
3 // the trick was described in boost's list by Aleksey Gurtovoy
4 // ----------------------------------------------------------------------------
6 // Copyright Samuel Krempp 2003. Use, modification, and distribution are
7 // subject to the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
10 // see http://www.boost.org/libs/format for library home page
12 // ----------------------------------------------------------------------------
14 #ifndef BOOST_MSVC_DISAMBIGUATER_HPP
15 #define BOOST_MSVC_DISAMBIGUATER_HPP
17 #if BOOST_WORKAROUND( BOOST_MSVC, <= 1300) || \
18 BOOST_WORKAROUND(__DECCXX_VER, BOOST_TESTED_AT(60590042))
19 // this whole header is specifically for msvc up to 7.0
21 #include <boost/format/group.hpp>
28 template< class Ch, class Tr, class T >
31 template< typename U >
32 static void put_head(BOOST_IO_STD basic_ostream<Ch, Tr>& os, group1<U> const& x, long)
34 os << group_head(x.a1_);
36 static void put_head(BOOST_IO_STD basic_ostream<Ch, Tr>& os, T const& x, int)
39 template< typename U >
40 static void put_last(BOOST_IO_STD basic_ostream<Ch, Tr>& os, group1<U> const& x, long)
42 os << group_last(x.a1_);
44 static void put_last(BOOST_IO_STD basic_ostream<Ch, Tr>& os, T const& x, int)
56 #endif // -BOOST_MSVC_DISAMBIGUATER_HPP