Commit Graph

314 Commits

Author SHA1 Message Date
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
cf14ff1f05 using boost:str instead of boost::io:str.
[SVN r22232]
2004-02-10 12:27:08 +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
9772222242 basic_oalttrsingstream instead of outsstream, and 'parse-once' now means copying a static const format object (which can be thread safe) rather than using one format object all the times
[SVN r22108]
2004-02-01 16:38:34 +00:00
Samuel Krempp
e767184292 import RC_1_31_0 doc update
[SVN r22107]
2004-02-01 16:34:25 +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
1ea9bde5e5 str(..) function moved in boost:: namespace (was boost::io)
[SVN r22062]
2004-01-29 21:03:46 +00:00
Samuel Krempp
3d9fbf1553 using boost::str
[SVN r22061]
2004-01-29 21:02:30 +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
8e3b8c53ce settled for clear() / clear_binds() member function names.
[SVN r21909]
2004-01-25 04:25:57 +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
Samuel Krempp
d30e334876 not using anymore manipulators that gcc-2.95 lacks
so it compiles with old gcc.


[SVN r21855]
2004-01-21 11:08:30 +00:00
Samuel Krempp
33ff28bce1 a few more tests, and new source headers
[SVN r21854]
2004-01-21 11:01:39 +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
Beman Dawes
c78659f957 index.htm renamed index.html
[SVN r21231]
2003-12-11 23:31:15 +00:00
Vladimir Prus
d0333cfcf3 Add V2 Jamfile
[SVN r20210]
2003-09-29 16:09:15 +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