]> git.lyx.org Git - lyx.git/blob - src/BoostFormat.h
Lars says _(_(b)) is a bug ... fix
[lyx.git] / src / BoostFormat.h
1 // -*- C++ -*-
2 #ifndef LYX_BOOST_FORMAT_H
3 #define LYX_BOOST_FORMAT_H
4
5 // Only include this if it is possible to use
6 // Boost.Format at all.
7 #if USE_BOOST_FORMAT
8
9 #include <boost/format.hpp>
10
11 // Add explicit instantion for g++ compilers
12 #ifdef __GNUG__
13
14 namespace boost
15 {
16
17 extern
18 template basic_format<char>;
19
20 extern template
21 std::ostream &
22 operator<< <char, std::char_traits<char> >(std::ostream &,
23                                            boost::basic_format<char> const &);
24
25 namespace io
26 {
27
28 extern template
29 std::string
30 str<char, std::char_traits<char> >(boost::basic_format<char> const &);
31
32 namespace detail
33 {
34
35 extern template
36 bool parse_printf_directive<char, std::char_traits<char> >
37 (std::string const &, std::string::size_type*,
38  format_item<char, std::char_traits<char> >*,
39  std::ios &, unsigned char);
40
41 extern template
42 void distribute<char, std::char_traits<char>, std::string const &>
43 (boost::basic_format<char>&, std::string const &);
44
45 extern template
46 boost::basic_format<char> &
47 feed<char, std::char_traits<char>,
48      std::string const &>(boost::basic_format<char> &,
49                           std::string const &);
50
51 } // namespace detail
52
53 } // namespace io
54
55 } // namespace boost
56
57 #endif // __GNUG__
58
59 #endif // USE_BOOST_FORMAT
60
61 #endif // LYX_BOOST_FORMAT_H