boost::format compilation fixes.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5717 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-11-25 19:44:44 +00:00
parent a9c2dd92df
commit 365b73748f
3 changed files with 11 additions and 2 deletions

View File

@ -8,7 +8,8 @@
#include <boost/format.hpp>
// Add explicit instantion
// Add explicit instantion for g++ compilers
#ifdef __GNUG__
namespace boost
{
@ -53,6 +54,8 @@ feed<char, std::char_traits<char>,
} // namespace boost
#endif // __GNUG__
#endif // USE_BOOST_FORMAT
#endif // LYX_BOOST_FORMAT_H

View File

@ -1,3 +1,9 @@
2002-11-25 Angus Leeming <leeming@lyx.org>
* BoostFormat.h: wrap code inside #ifdef __GNUG__ block.
* lyx_main.C (init): compile fix.
2002-11-25 Lars Gullik Bjønnes <larsbj@gullik.net>
* lyx_cb.C (start): boost.formatify

View File

@ -364,7 +364,7 @@ void LyX::init(bool gui)
#if USE_BOOST_FORMAT
lyxerr << boost::format(_("Using built-in default %1$s"
" but expect problems."))
% LYX_DIR
% static_cast<char *>(LYX_DIR)
<< endl;
#else
lyxerr << _("Using built-in default ") << LYX_DIR