]> git.lyx.org Git - lyx.git/blob - src/support/BoostFormat.h
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[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 template
28 std::ostream &
29 operator<< <char, std::char_traits<char> >(std::ostream &,
30                                            boost::basic_format<char> const &);
31
32 namespace io
33 {
34
35 extern template
36 std::string
37 str<char, std::char_traits<char> >(boost::basic_format<char> const &);
38
39 namespace detail
40 {
41
42 extern template
43 bool parse_printf_directive<char, std::char_traits<char> >
44 (std::string const &, std::string::size_type*,
45  format_item<char, std::char_traits<char> >*,
46  std::ios &, unsigned char);
47
48 extern template
49 void distribute<char, std::char_traits<char>, std::string const &>
50 (boost::basic_format<char>&, std::string const &);
51
52 extern template
53 boost::basic_format<char> &
54 feed<char, std::char_traits<char>,
55      std::string const &>(boost::basic_format<char> &,
56                           std::string const &);
57
58 } // namespace detail
59
60 } // namespace io
61
62 } // namespace boost
63
64 #endif // __GNUG__
65
66 #endif // USE_BOOST_FORMAT
67
68 #endif // LYX_BOOST_FORMAT_H