]> git.lyx.org Git - lyx.git/blob - src/support/BoostFormat.h
Fix the texinfo dialog and associated cleanup.
[lyx.git] / src / support / BoostFormat.h
1 // -*- C++ -*-
2 /**
3  * \file BoostFormat.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Lars Gullik Bjønnes
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef LYX_BOOST_FORMAT_H
13 #define LYX_BOOST_FORMAT_H
14
15 // Only include this if it is possible to use
16 // Boost.Format at all.
17 #if USE_BOOST_FORMAT
18
19 #include <boost/format.hpp>
20
21 // Add explicit instantion for g++ compilers
22 #ifdef __GNUG__
23
24 namespace boost
25 {
26
27 extern
28 template basic_format<char>;
29
30 extern template
31 std::ostream &
32 operator<< <char, std::char_traits<char> >(std::ostream &,
33                                            boost::basic_format<char> const &);
34
35 namespace io
36 {
37
38 extern template
39 std::string
40 str<char, std::char_traits<char> >(boost::basic_format<char> const &);
41
42 namespace detail
43 {
44
45 extern template
46 bool parse_printf_directive<char, std::char_traits<char> >
47 (std::string const &, std::string::size_type*,
48  format_item<char, std::char_traits<char> >*,
49  std::ios &, unsigned char);
50
51 extern template
52 void distribute<char, std::char_traits<char>, std::string const &>
53 (boost::basic_format<char>&, std::string const &);
54
55 extern template
56 boost::basic_format<char> &
57 feed<char, std::char_traits<char>,
58      std::string const &>(boost::basic_format<char> &,
59                           std::string const &);
60
61 } // namespace detail
62
63 } // namespace io
64
65 } // namespace boost
66
67 #endif // __GNUG__
68
69 #endif // USE_BOOST_FORMAT
70
71 #endif // LYX_BOOST_FORMAT_H