Douglas Gregor
b3cecbf8e8
Untabify
...
[SVN r30052]
2005-07-13 15:40:24 +00:00
Markus Schöpflin
bd35889d7d
Enable overload disambiguation workaround for Tru64/CXX too. This clears most of
...
the remaining test failures for this compiler.
[SVN r29516]
2005-06-10 12:29:27 +00:00
Markus Schöpflin
cf1efc3586
Bumped version for Tru64/CXX workaround.
...
[SVN r29514]
2005-06-10 10:33:03 +00:00
Samuel Krempp
20f2d3405d
. made many casts explicit to avoid warnings on MSVC7, and changed a few types for more coherence
...
. minor changes
[SVN r27510]
2005-02-27 02:06:57 +00:00
Samuel Krempp
e1c99d5351
uses std::string::size_type directly instead of thru chained typedef, to workaround MSVC7+ bug
...
[SVN r27505]
2005-02-25 15:19:15 +00:00
Samuel Krempp
25fa0a3285
fixed typo in macro name BOOST_NO_LOCALE_ISDIGIT (the typo was consistent where it matters,
...
had no effect on compilation)
[SVN r27491]
2005-02-23 13:10:36 +00:00
Aleksey Gurtovoy
ca5e01849c
workarounds_gcc-2.95.hpp -> workarounds_gcc-2_95.hpp
...
[SVN r25666]
2004-10-11 14:08:04 +00:00
Markus Schöpflin
5ed5e8a4f0
Add workaround for Compaq C++.
...
[SVN r24845]
2004-09-01 08:11:05 +00:00
Samuel Krempp
0b12543b27
-feed_args.hpp : includes boost/assert.hpp and replaced "assert" by "BOOST_ASSERT", thanks to Nando for reporting this.
...
-sample_formats.cpp : was using assert without including it
[SVN r24613]
2004-08-20 09:44:24 +00:00
Samuel Krempp
7a521da638
copyright info added. (I had forgotten those two)
...
[SVN r24611]
2004-08-20 09:04:16 +00:00
Rene Rivera
01aaf84d38
Remove tabs in file.
...
[SVN r24040]
2004-07-25 15:53:20 +00:00
Eric Niebler
f54966678b
move BOOST_USING_STD_MIN and _MAX and BOOST_PREVENT_MACRO_SUBSTITUTION to the config headers, remove boost/minmax.hpp, update coding guidelines
...
[SVN r23313]
2004-07-02 01:21:32 +00:00
Eric Niebler
806a448be7
remove std_min and std_max, update minmax coding guidelines
...
[SVN r23162]
2004-06-23 04:49:48 +00:00
Samuel Krempp
d09013ce9c
changed format_item::truncate_ 's type from int to streamsize. that's what it was supposed to be from the start. spotted on 64 bit plaform by A.Leeming
...
[SVN r22550]
2004-03-25 13:38:16 +00:00
Eric Niebler
42532c2942
remove minmax hack from win32.hpp and fix all places that could be affected by the minmax macros
...
[SVN r22394]
2004-02-26 18:27:02 +00:00
Samuel Krempp
cf900ac983
use BOOST_USE_FACET wrapper
...
[SVN r22237]
2004-02-11 15:00:31 +00:00
Samuel Krempp
276fe36eb3
1. use BOOST_USE_FACET wrapper
...
2. using std::string's += operator instead of (more efficient) append for STLPORT + MSVC <= 7.0
msvc-6-stlport fails to find basic_string::append( Iter, Iter) when linking
with Iter = _STL::_DBG_iter< _STL::_Nondebug_string<char,
_STL::char_traits<char>,
_STL::allocator<char> >
might affect other MSwindows compilers.
[SVN r22236]
2004-02-11 15:00:05 +00:00
Samuel Krempp
14b13e2458
using std::string's += operator instead of (more efficient) append for STLPORT + MSVC <= 7.0
...
msvc-6-stlport fails to find basic_string::append( Iter, Iter) when linking
with Iter = _STL::_DBG_iter< _STL::_Nondebug_string<char,
_STL::char_traits<char>,
_STL::allocator<char> >
might affect other MSwindows compilers.
[SVN r22235]
2004-02-11 14:59:22 +00:00
Samuel Krempp
bff741c34f
forgot opening {
...
[SVN r22198]
2004-02-08 20:54:58 +00:00
Samuel Krempp
6316ac304e
. fix 2 warnings (no return in the undefined behaviour case of seekpos, and unused values in clear_buffer)
...
. std::ios_base instead of ::std::ios_base to try to make msvc6 happy (this line strange error msg..)
[SVN r22187]
2004-02-06 15:56:21 +00:00
Samuel Krempp
c51a055f92
stick to the norm's guaranteed operations on strempos / streamoff (§27.4.3.2)
...
should fix gcc-3.4-cvs
+ replaced std::streamoff by off_type for consistency.
[SVN r22164]
2004-02-05 01:56:01 +00:00
Samuel Krempp
86a7a74c83
- wasnt including <ostream> in alt_stream.hpp, now this is done (in compat_workarounds, since <ostream> doesnt exist in gcc-2.95's native stlport)
...
- cleaned gcc-2.95 workarounds : testing for STLport vs native is now consistent across headers.
[SVN r22163]
2004-02-04 20:25:33 +00:00
Samuel Krempp
066610a360
str wasnt templated on class Alloc, fixed. also forward declaration in format_fwd.hpp was useless, removed.
...
[SVN r22159]
2004-02-04 11:25:38 +00:00
Samuel Krempp
d6bfa62c7a
replaced problemaic typedef to basic_format::string_type with plain basic_string
...
hopefully solve vc7 issue
[SVN r22141]
2004-02-02 22:26:27 +00:00
Samuel Krempp
18253a24d8
size_type typedef used in implementation. maybe fix msvc issue
...
[SVN r22128]
2004-02-01 23:42:02 +00:00
Samuel Krempp
11ec0fe5f1
replaced ComaptOStream<..> by using emulated std::basic_ostream and new BOOST_NO_TEMPLATE_STD_STREAM macro
...
cleaned CompatTraits and CompatAlloc, now simply points to a std-compatible type
[SVN r22105]
2004-02-01 14:57:09 +00:00
Samuel Krempp
bd330592ca
blank line rmeoved
...
[SVN r22104]
2004-02-01 14:42:05 +00:00
Samuel Krempp
a6df89ebeb
forward declaration of operator<< is not needed, removed
...
[SVN r22103]
2004-02-01 14:41:00 +00:00
Samuel Krempp
3f933ee684
ooops, typo. forgot 'typedef' ..
...
[SVN r22091]
2004-01-31 13:41:47 +00:00
Samuel Krempp
2ab20a9142
minor details from RC_1_31. changed last foobar.h includes to <foobar.h>
...
[SVN r22090]
2004-01-31 01:12:54 +00:00
Samuel Krempp
9fbf754d3e
from RC_1_31, size_type declared as typedef inside class
...
[SVN r22089]
2004-01-31 01:11:56 +00:00
Samuel Krempp
336f2b5e76
from RC1_31, qualified constructor call needed for borland in operator=()
...
[SVN r22088]
2004-01-31 01:10:39 +00:00
Samuel Krempp
4d139883de
added 'private' keyword for the private inheritance
...
[SVN r21911]
2004-01-25 13:09:55 +00:00
Samuel Krempp
46fdc35cc3
settled for clear() / clear_binds() member functions
...
[SVN r21910]
2004-01-25 04:31:46 +00:00
Samuel Krempp
41c7c576c7
oops again, got to include <boost/config.hpp> before testing BOOST_NO_STD_LOCALE
...
[SVN r21908]
2004-01-25 04:23:26 +00:00
Samuel Krempp
a824542ba0
oops, forget workarounds need <locale> to be already included
...
[SVN r21899]
2004-01-24 19:19:10 +00:00
Samuel Krempp
18785faa01
small modifs :
...
. removed CompatFoo<CompatFoo< typename > > specializations (maybe msvc will be happy)
. fixed a few non-qualified 'size_t' (thanks cwpro8)
. moved free func boost::io::str(boost::basic_format const&) into boost:: (allows koenig lookup, much more convenient)
. changed the IO_NEEDS_USING_DECLARATION list (is this still required on some compiler ?)
and mostly cosmetic details (shortened //------ .. lines longer than 80 and other unnecessary long lines, changed comments, ..)
[SVN r21892]
2004-01-24 17:33:18 +00:00
Samuel Krempp
86dfc15c4e
format::size() added.
...
[SVN r21873]
2004-01-21 22:48:25 +00:00
Samuel Krempp
0d87c146eb
fixed size_t to std::size_t
...
[SVN r21872]
2004-01-21 22:47:22 +00:00
Samuel Krempp
beb10ca1cc
. added basic_altstringbuf (tailored alternative to std::basic_stringbuf, and works on
...
gcc-2.95 which doesnt define stringbufs)
-> alt_sstream.hpp and alt_sstream_impl.hpp
. added a template framework (CompatTraits<>, CompatAlloc<>, CompatOStream) to
accomodate non-conforming stdlibs lacking while being transparent on conforming
platforms. (it allows supporting gcc-2.95)
-> compat_workarounds.hpp
. replaced basic_format::oss_ by a stringbuf. There was no way to be sure to reset its state fully
between calls to operator% (because of the stream's xalloc())
The right way is creating a new stream each time, but re-allocating a buffer each time has
a big impact
-> now basic_format stores a basic_altstringbuf
. more detailed exception classes (added data members to pass pertinant information)
. new source-header with reference to the new Boost license
[SVN r21856]
2004-01-21 11:51:23 +00:00
Beman Dawes
735a1691e5
Fix compliance issues detected by Metrowerks
...
[SVN r21325]
2003-12-18 17:51:17 +00:00
Douglas Gregor
898e7028cd
Unnecessary (?) anonymous namespace was tripping up MSVC 6.0; the "detail" namespace is fine
...
[SVN r21249]
2003-12-14 04:53:43 +00:00
Samuel Krempp
3ea3482d99
MSVC STLport 's char_traits is not in namespace std.
...
[SVN r20116]
2003-09-19 17:20:50 +00:00
Samuel Krempp
8a83ea77d2
fixed few small errors (pcount(), str()..)
...
[SVN r20115]
2003-09-19 16:59:38 +00:00
Samuel Krempp
7220144bed
. forgot to remove a 'state0' occurence in format_implementation.hpp
...
. gcc-2.95 with STLport has good stringstream, but format wasnt making the distinction
. stringbuf is now derived into a specific class, so outsstream can use it thru base_from_member, cleaner.
[SVN r20109]
2003-09-19 00:59:21 +00:00
Samuel Krempp
3feaca02c6
. format::clear() 's meaning changed : now it _also_ clears bound arguments, (was former clear_binds() function) and the former clear() is now 'clear_non_bound(..)
...
. format::parse(..) now public.
. format constructors are now explicit
. improved string processing in feed_args.hpp and parsing.hpp
. feed_args.hpp : now produces sensible result when spacepad, or truncate, is specified and the user set the stream adjustfield to 'internal'
[SVN r20078]
2003-09-16 16:53:34 +00:00
Samuel Krempp
82d8a5e109
re-indented.
...
no actual change.
[SVN r20028]
2003-09-11 19:46:33 +00:00
Samuel Krempp
460c97f4e8
no actual change.
...
reindented, and modified comments.
[SVN r20026]
2003-09-11 18:31:28 +00:00
Samuel Krempp
0b5c07ba1a
no actual change
...
re-indented both files (and re-ordered format's data members)
[SVN r20025]
2003-09-11 17:01:08 +00:00
Samuel Krempp
2e6f048854
no actual change, only re-idented the whole file (4 isntead of 2, etc..)
...
(discovered emacs's 'cc-mode' :)
[SVN r20024]
2003-09-11 15:41:55 +00:00
Samuel Krempp
fc8e9cc73c
1. moved
...
macros_default.hpp -> detail/config_macros.hpp
macros_stlport.hpp -> detail/workarounds_stlport.hpp
msvc_disambiguater.hpp -> detail/msvc_disambiguater.hpp
workarounds_gcc-2.95.hpp -> detail/workarounds_gcc-2.95.hpp
added detail/unset_macros.hpp
2. moved outsstream.hpp 's implementation into outsstream_impl.hpp
And fixed the problem with gcc-2.95 failing to init the stream correctly.
[SVN r19986]
2003-09-10 00:36:27 +00:00
Samuel Krempp
e5d2827c69
refactored the completely uninteresting headers in ./detail/
...
[SVN r19985]
2003-09-10 00:29:28 +00:00
Samuel Krempp
bc2bc08695
now doesnt try to use <sstream> on g++ < 3, even if it *is* present.
...
(using strstream for this cas too is just simpler)
[SVN r19984]
2003-09-09 18:24:51 +00:00
Samuel Krempp
2fc361407f
removed 2 useless using declarations, left from debugging.
...
[SVN r19983]
2003-09-09 18:23:39 +00:00
Samuel Krempp
81e823cae9
small fixes.
...
. workarounds for gcc-2.95 now depend on __STL_CONFIG_H
. outsstream 'using ' its buffer methods pptr(), etc..
[SVN r19979]
2003-09-09 12:04:28 +00:00
Samuel Krempp
197b805cf1
. use own boost::io::outsstream as a stringstream with clear_buffer() feature
...
(35% speed-up when reusing format objects with gcc-3)
and makes it easier to support gcc-2.95
. workarounds for gcc-2.95'sSGI stdlib ( basic_foo<Ch, Tr> classes declared and
non-defined except a partial specialisation basic_foo<char, Tr>
which is defined by deriving foo (foo being ostream, streambuf, ios, ..)
. small clean-ups
[SVN r19975]
2003-09-09 02:51:52 +00:00
Samuel Krempp
e56ede40d7
got rid of useless empty string auxiliary objects,
...
among which a static one was causing problems on some platform.
[SVN r19794]
2003-08-27 03:24:41 +00:00
Dave Abrahams
aa221d4383
Apply patch for GCC 3.3 from larsbj-at-gullik.net (Lars Gullik Bjønnes)
...
[SVN r19403]
2003-08-02 16:17:48 +00:00
Samuel Krempp
fa2af043a4
string_t::npos , fixes bug report (anonymous SF)
...
[SVN r18582]
2003-05-28 11:21:49 +00:00
Samuel Krempp
7acdc249e5
fixes bug reported by okuchuk
...
(truncate bigger than size)
[SVN r18581]
2003-05-28 11:20:49 +00:00
Samuel Krempp
4dad9549a8
there was some BOOST_WORKAROUND( BOOST_MSVC, BOOST_TESTED_AT( 1300) )
...
removed, now that the vc7.1 beta regressions results are available.
[SVN r18331]
2003-04-29 12:39:07 +00:00
Samuel Krempp
4d5678417b
now using BOOST_WORKAROUND in this file too.
...
[SVN r18309]
2003-04-25 14:08:07 +00:00
Samuel Krempp
ff6321e45b
. BOOST_BAD_ISDIGIT renamed BOOST_NO_LOCALE_ISDIGIT (this macro was aready the one being checked in the eginning of
...
the file)
[SVN r18010]
2003-03-19 16:51:00 +00:00
Samuel Krempp
8ce2f0eccc
. BOOST_BAD_ISDIGIT renamed BOOST_NO_LOCALE_ISDIGIT (this macro was aready the one being checked in the eginning of the file)
...
[SVN r18009]
2003-03-19 16:50:48 +00:00
Beman Dawes
f3cf9dd35a
Borland fix from Alisdair Meredith
...
[SVN r18007]
2003-03-19 14:12:21 +00:00
Samuel Krempp
9e2c802919
.BOOST_WORKAROUND( _CRAYC ..) for the template functions friend declarations
...
[SVN r17219]
2003-02-05 01:34:45 +00:00
Samuel Krempp
521f8a30cc
minor diff. (include <locale> when possible, even if BAD_IS_DIGIT)
...
[SVN r17218]
2003-02-05 00:46:01 +00:00
Samuel Krempp
f3270702f0
call isdigit after using namespace std, tos upport macro-defined isdigit
...
[SVN r17217]
2003-02-05 00:42:52 +00:00
Samuel Krempp
3c23a8620c
. Now using BOOST_WORKAROUND. renamed local macros, and checked they are not already defined.
...
. Borland does not support 'non-const-overloads' correctly (triggers warnings, temporaries being used). So this feature is now disabled for borland.
[SVN r17216]
2003-02-05 00:16:52 +00:00
Samuel Krempp
198c0465ff
. Now using BOOST_WORKAROUND. renamed local macros, and checked they are not already defined.
...
. std::swap(string1, string2) replaced by string1.swap(string2).
it was triggering borland bugs.
. Borland does not support 'non-const-overloads' correctly (triggers warnings, temporaries being used).
The non-const reference scheme is now disabled for borland.
[SVN r17215]
2003-02-05 00:15:18 +00:00
Samuel Krempp
734e1155ee
. changed wrap_isdigit prototype, avoids trouble with kylix
...
[SVN r17177]
2003-02-03 15:59:16 +00:00
Samuel Krempp
cd65597040
. replaced <cassert> assert's by <boost/assert.hpp> 's BOOST_ASSERT
...
. wrapped calls to std::isdigit, and call <ctype.h> 's isdigit instead, if necessary.
[SVN r17176]
2003-02-03 15:43:25 +00:00
Samuel Krempp
4c88b8ee50
made #undef isdigit for everybody, instead of just MSVC.
...
(got the same macro on Mdk9 g++-3.2, for whatever reason)
[SVN r17172]
2003-02-03 13:27:47 +00:00
Beman Dawes
6706baa2c4
add or update See www.boost.org comments
...
[SVN r16708]
2002-12-27 16:51:53 +00:00
Samuel Krempp
9990e6d4af
removed ostream includes (sstream should be enough anyway). swtiched to angle includes.
...
[SVN r16504]
2002-12-03 23:54:34 +00:00
Samuel Krempp
f0002ac919
split format_config.hpp into 2 macro_XXX headers
...
[SVN r16503]
2002-12-03 23:52:07 +00:00
Samuel Krempp
10b4f55cdc
replaced format_config.hpp by macros_stl.hpp and macros_default.hpp, and began switching to 'angle includes'
...
[SVN r16502]
2002-12-03 23:50:03 +00:00
Samuel Krempp
103fd4690f
added #ifndef BOOST_NO_STD_LOCALE switches
...
[SVN r16501]
2002-12-03 23:36:02 +00:00
Samuel Krempp
99edb6799b
avoid std::isdigit. Instead :
...
using namespace std;
[ then call isdigit(..) ]
suggested by feedback from Alisdair Meredith
it might suppress borland 0x560 errors .
[SVN r16500]
2002-12-03 23:31:24 +00:00
Samuel Krempp
f7fb9b5429
split format_config.hpp into 2 macro_XXX headers
...
[SVN r16499]
2002-12-03 23:26:12 +00:00
Samuel Krempp
93de453c35
changed comments about basic_ios& used just for narrow/widen
...
[SVN r16495]
2002-12-03 21:36:36 +00:00
Samuel Krempp
badd371c1e
codewarrior (and the standard..) need qualified io::out_of_range_bit and others
...
(suggested by beman)
[SVN r16447]
2002-11-28 01:07:30 +00:00
Samuel Krempp
64b7faf0df
refactored feed_args(..) code
...
[SVN r16445]
2002-11-27 18:03:53 +00:00
Samuel Krempp
76e2bc6bf6
comments changes
...
[SVN r16431]
2002-11-26 18:01:45 +00:00
Samuel Krempp
63d5714560
renamed do_fill into do_pad,
...
and comments clarifications
[SVN r16430]
2002-11-26 18:00:19 +00:00
Samuel Krempp
171847868a
removed 'û' from the source
...
[SVN r16423]
2002-11-26 15:46:24 +00:00
Samuel Krempp
9db777270d
workaround for BCB5 by Alisdair Meredith : basic_format<Ch, Tr> defines typedefs ChairT for Ch, and Traits for Tr
...
[SVN r16422]
2002-11-26 15:45:28 +00:00
Björn Karlsson
48b58644fc
Applied patch from Lbg. Suppressed warnings for 64-bit platforms.
...
[SVN r16420]
2002-11-26 10:55:29 +00:00
Björn Karlsson
9b73daeb54
Patch from lbj, enabling the library to be used without exceptions
...
[SVN r16344]
2002-11-20 14:51:17 +00:00
Björn Karlsson
9f849416f5
Added copyright statement
...
[SVN r16338]
2002-11-20 10:26:29 +00:00
John Maddock
5e469f3509
Changed BOOST_NO_STD_WSTREAM to BOOST_NO_STD_WSTREAMBUF,
...
the former doesn't exist in the config system.
[SVN r16221]
2002-11-13 12:15:10 +00:00
Samuel Krempp
e7199ada9b
merge from RC_1_29_0 branch
...
( removed "$Id$" from header comments, and hunted down two tabs)
[SVN r15849]
2002-10-10 11:17:19 +00:00
Samuel Krempp
415a762b97
Merged from branch to trunk
...
[SVN r15497]
2002-09-24 16:37:40 +00:00
Samuel Krempp
ee2ed45450
. fixed parsing bug, when a '%%' was used after all arguments in a format string.
...
. mention the '%%' syntax for printing literal '%'
in the documentation. (it's standard printf legacy, but nonetheless)
[SVN r15075]
2002-08-24 02:34:00 +00:00
Samuel Krempp
a7ccc60cb7
bad semi-colons removed, thanks to <Gennadiy@ilx.com>
...
[SVN r14622]
2002-07-26 22:21:30 +00:00
Dave Abrahams
00fda18017
Fix unversioned VC++ checks
...
[SVN r14436]
2002-07-13 12:26:19 +00:00
Samuel Krempp
c11dd7586e
BOOST_IO_STD fixes (I had forgot a few things, thanks Markus)
...
[SVN r14209]
2002-06-20 12:43:43 +00:00
Samuel Krempp
062198b94a
. used std::streamsize instead of int where needed.
...
. added format_config.hpp and BOOST_IO_STD macro to deal with STLport
(which does not accept 'std::' in 'std::basic_stream<..>' )
as suggested by Markus Schöpflin <markus.schoepflin@ginit-technology.com>
[SVN r14162]
2002-06-17 17:29:43 +00:00
Samuel Krempp
c2acd377bf
initial commit
...
[SVN r14002]
2002-05-22 11:56:47 +00:00