X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=boost%2Fboost%2Fformat.hpp;h=73464a819f8fe896da4adfd1b75540488b2841cd;hb=c48091f33a773732fa6c789927e5833e44108d9d;hp=0cd5023fbda4289ddfe2701aa3500714e04d8455;hpb=230777782955ffe5c1aadfd4ae6807b92ea4f28a;p=lyx.git diff --git a/boost/boost/format.hpp b/boost/boost/format.hpp index 0cd5023fbd..73464a819f 100644 --- a/boost/boost/format.hpp +++ b/boost/boost/format.hpp @@ -1,19 +1,14 @@ -// -*- C++ -*- -// Boost general library 'format' --------------------------- -// See http://www.boost.org for updates, documentation, and revision history. +// ---------------------------------------------------------------------------- +// format.hpp : primary header +// ---------------------------------------------------------------------------- -// (C) Samuel Krempp 2001 -// krempp@crans.ens-cachan.fr -// Permission to copy, use, modify, sell and -// distribute this software is granted provided this copyright notice appears -// in all copies. This software is provided "as is" without express or implied -// warranty, and with no claim as to its suitability for any purpose. +// Copyright Samuel Krempp 2003. Use, modification, and distribution are +// subject to the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + +// See http://www.boost.org/libs/format for library home page -// ideas taken from RĂ¼diger Loos's format class -// and Karl Nelson's ofstream -// ---------------------------------------------------------------------------- -// format.hpp : primary header // ---------------------------------------------------------------------------- #ifndef BOOST_FORMAT_HPP @@ -21,47 +16,23 @@ #include #include -#include -#include #include +#include #ifndef BOOST_NO_STD_LOCALE #include #endif - -// make sure our local macros wont override something : -#if defined(BOOST_NO_LOCALE_ISDIGIT) || defined(BOOST_OVERLOAD_FOR_NON_CONST) \ - || defined(BOOST_IO_STD) || defined( BOOST_IO_NEEDS_USING_DECLARATION ) -#error "a local macro would overwrite a previously defined macro" -#endif - - -#include // stlport workarounds -#include - -#if defined(BOOST_NO_STD_LOCALE) || \ - ( BOOST_WORKAROUND(__BORLANDC__, <= 0x564) \ - || BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT( 0x570 ) ) ) -// some future __BORLANDC__ >0x564 versions might not need this -// 0x570 is Borland's kylix branch -#define BOOST_NO_LOCALE_ISIDIGIT -#endif +// *** Compatibility framework +#include #ifdef BOOST_NO_LOCALE_ISIDIGIT #include // we'll use the non-locale 's std::isdigit(int) #endif - -#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x570) ) || BOOST_WORKAROUND( BOOST_MSVC, BOOST_TESTED_AT(1300)) -#define BOOST_NO_OVERLOAD_FOR_NON_CONST -#endif - - // **** Forward declarations ---------------------------------- -#include // basic_format, and other frontends -#include // misc forward declarations for internal use - +#include // basic_format, and other frontends +#include // misc forward declarations for internal use // **** Auxiliary structs (stream_format_state , and format_item ) #include @@ -74,9 +45,7 @@ // **** Implementation ------------------------------------------- #include // member functions - #include // class for grouping arguments - #include // argument-feeding functions #include // format-string parsing (member-)functions @@ -85,17 +54,6 @@ // *** Undefine 'local' macros : -#ifdef BOOST_NO_OVERLOAD_FOR_NON_CONST -#undef BOOST_NO_OVERLOAD_FOR_NON_CONST -#endif -#ifdef BOOST_NO_LOCALE_ISIDIGIT -#undef BOOST_NO_LOCALE_ISIDIGIT -#endif -#ifdef BOOST_IO_STD -#undef BOOST_IO_STD -#endif -#ifdef BOOST_IO_NEEDS_USING_DECLARATION -#undef BOOST_IO_NEEDS_USING_DECLARATION -#endif +#include #endif // BOOST_FORMAT_HPP