diff --git a/src/ChangeLog b/src/ChangeLog index e801ed5b1c..4f7aa40a40 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2004-01-06 Lars Gullik Bjonnes + + * Chktex.C: include boost/format.hpp + 2004-01-05 Lars Gullik Bjonnes * InsetList.C: replace functor MathcIt with adaptable functor diff --git a/src/Chktex.C b/src/Chktex.C index 4f2fc6c6ae..4ad44c2fca 100644 --- a/src/Chktex.C +++ b/src/Chktex.C @@ -15,12 +15,13 @@ #include "LaTeX.h" // TeXErrors -#include "support/BoostFormat.h" #include "support/filetools.h" #include "support/lstrings.h" #include "support/lyxlib.h" #include "support/systemcall.h" +#include + #include using lyx::support::atoi; diff --git a/src/support/BoostFormat.h b/src/support/BoostFormat.h deleted file mode 100644 index a888b8fd1a..0000000000 --- a/src/support/BoostFormat.h +++ /dev/null @@ -1,68 +0,0 @@ -// -*- C++ -*- -/** - * \file BoostFormat.h - * This file is part of LyX, the document processor. - * Licence details can be found in the file COPYING. - * - * \author Lars Gullik Bjønnes - * - * Full author contact details are available in file CREDITS. - */ - -#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 for g++ compilers -#ifdef __GNUG__ - -namespace boost -{ - -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 // __GNUG__ - -#endif // USE_BOOST_FORMAT - -#endif // LYX_BOOST_FORMAT_H diff --git a/src/support/ChangeLog b/src/support/ChangeLog index 49d71a1316..229aea6f3a 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -1,3 +1,12 @@ +2004-01-06 Lars Gullik Bjonnes + + * Makefile.am (libsupport_la_SOURCES): remove BoostFormat.h and + boost-inst.C + * BoostFormat.h: delete file + * boost-inst.C: delete fil + + * lstrings.C: include boost/format.hpp + 2004-01-05 Angus Leeming * globbing.[Ch]: new files containing some globbing utilities. diff --git a/src/support/Makefile.am b/src/support/Makefile.am index 7098ba6a3a..721e7b80b3 100644 --- a/src/support/Makefile.am +++ b/src/support/Makefile.am @@ -15,14 +15,12 @@ endif BUILT_SOURCES = path_defines.C libsupport_la_SOURCES = \ - BoostFormat.h \ FileInfo.C \ FileInfo.h \ FileMonitor.h \ FileMonitor.C \ abort.C \ atoi.C \ - boost-inst.C \ chdir.C \ copy.C \ copied_ptr.h \ diff --git a/src/support/boost-inst.C b/src/support/boost-inst.C deleted file mode 100644 index a5a290befa..0000000000 --- a/src/support/boost-inst.C +++ /dev/null @@ -1,59 +0,0 @@ -/** - * \file boost-inst.C - * This file is part of LyX, the document processor. - * Licence details can be found in the file COPYING. - * - * \author Lars Gullik Bjønnes - * - * Full author contact details are available in file CREDITS. - */ - -#include - -#include "support/BoostFormat.h" - -#if USE_BOOST_FORMAT - -namespace boost -{ - -template class basic_format; - -template -std::ostream & -operator<< >(std::ostream &, - boost::basic_format const &); - -namespace io -{ - -template -std::string -str >(boost::basic_format const &); - -namespace detail -{ - -template -bool parse_printf_directive > -(std::string const &, std::string::size_type*, - format_item >*, - std::ios &, unsigned char); - -template -void distribute, std::string const &> -(boost::basic_format &, std::string const&); - -template -boost::basic_format & -feed, - std::string const &>(boost::basic_format &, - std::string const &); - -} // namespace detail - -} // namespace io - -} // namespace boost - -#endif // USE_BOOST_FORMAT diff --git a/src/support/lstrings.C b/src/support/lstrings.C index ad3532426b..6ca5e68f65 100644 --- a/src/support/lstrings.C +++ b/src/support/lstrings.C @@ -14,12 +14,12 @@ #include "lstrings.h" #include "support/std_sstream.h" #include "debug.h" -#include "BoostFormat.h" #include "lyxlib.h" #include "tostr.h" #include #include +#include #include