X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBoostFormat.h;h=e96cb1d24695a99a3d9906439f8131ec9d890ba6;hb=8a5d04fd84e344a1ba1cfd3f5cce67d41874cfa3;hp=1f8defbc666091329ecd38293a2ceb6e46d7435a;hpb=b016d9d77324649f6fef8af9bb1c871fb7dafa33;p=lyx.git diff --git a/src/BoostFormat.h b/src/BoostFormat.h index 1f8defbc66..e96cb1d246 100644 --- a/src/BoostFormat.h +++ b/src/BoostFormat.h @@ -2,16 +2,60 @@ #ifndef LYX_BOOST_FORMAT_H #define LYX_BOOST_FORMAT_H +// Only include this if it is possible to use +// Boost.Format at all. +#if USE_BOOST_FORMAT + #include -// Add explicit instantion +// Add explicit instantion for g++ compilers +#ifdef __GNUG__ namespace boost { - extern - template basic_format; +extern +template basic_format; + +extern template +std::ostream & +operator<< >(std::ostream &, + boost::basic_format const &); + +namespace io +{ + +extern template +std::string +str >(boost::basic_format const &); + +namespace detail +{ + +extern template +bool parse_printf_directive > +(std::string const &, std::string::size_type*, + format_item >*, + std::ios &, unsigned char); + +extern template +void distribute, std::string const &> +(boost::basic_format&, std::string const &); + +extern template +boost::basic_format & +feed, + std::string const &>(boost::basic_format &, + std::string const &); + +} // namespace detail + +} // namespace io } // namespace boost -#endif +#endif // __GNUG__ + +#endif // USE_BOOST_FORMAT + +#endif // LYX_BOOST_FORMAT_H