]> git.lyx.org Git - lyx.git/blob - src/BoostFormat.h
add more explicit instantations
[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
12
13 namespace boost
14 {
15
16 extern
17 template basic_format<char>;
18
19 extern template
20 std::ostream &
21 operator<< <char, std::char_traits<char> >(std::ostream &,
22                                            boost::basic_format<char> const &);
23
24 namespace io
25 {
26
27 extern template
28 std::string
29 str<char, std::char_traits<char> >(boost::basic_format<char> const &);
30
31 namespace detail
32 {
33
34 extern template
35 bool parse_printf_directive<char, std::char_traits<char> >
36 (std::string const &, std::string::size_type*,
37  format_item<char, std::char_traits<char> >*,
38  std::ios &, unsigned char);
39
40 extern template
41 void distribute<char, std::char_traits<char>, std::string const &>
42 (boost::basic_format<char>&, std::string const &);
43
44 extern template
45 boost::basic_format<char> &
46 feed<char, std::char_traits<char>,
47      std::string const &>(boost::basic_format<char> &,
48                           std::string const &);
49
50 } // namespace detail
51
52 } // namespace io
53
54 } // namespace boost
55
56 #endif // USE_BOOST_FORMAT
57
58 #endif // LYX_BOOST_FORMAT_H