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(__DECCXX_VER, BOOST_TESTED_AT(60590042))
19 #include <boost/format/group.hpp>
26 template< class Ch, class Tr, class T >
29 template< typename U >
30 static void put_head(BOOST_IO_STD basic_ostream<Ch, Tr>& os, group1<U> const& x, long)
32 os << group_head(x.a1_);
34 static void put_head(BOOST_IO_STD basic_ostream<Ch, Tr>& os, T const& x, int)
37 template< typename U >
38 static void put_last(BOOST_IO_STD basic_ostream<Ch, Tr>& os, group1<U> const& x, long)
40 os << group_last(x.a1_);
42 static void put_last(BOOST_IO_STD basic_ostream<Ch, Tr>& os, T const& x, int)
52 #endif // -__DECCXX_VER
54 #endif // -BOOST_MSVC_DISAMBIGUATER_HPP