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 // this whole header is specifically for msvc up to 7.0
20 #include <boost/format/group.hpp>
27 template< class Ch, class Tr, class T >
30 template< typename U >
31 static void put_head(BOOST_IO_STD basic_ostream<Ch, Tr>& os, group1<U> const& x, long)
33 os << group_head(x.a1_);
35 static void put_head(BOOST_IO_STD basic_ostream<Ch, Tr>& os, T const& x, int)
38 template< typename U >
39 static void put_last(BOOST_IO_STD basic_ostream<Ch, Tr>& os, group1<U> const& x, long)
41 os << group_last(x.a1_);
43 static void put_last(BOOST_IO_STD basic_ostream<Ch, Tr>& os, T const& x, int)
55 #endif // -BOOST_MSVC_DISAMBIGUATER_HPP