Version number misery

Carlo Wood carlo@alinoe.com
Wed May 16 18:57:00 GMT 2001


Grrmbl,

as if it isn't hard enough for me already that you guys
changed the signature of basic_filebuf three times in
the past months - it seems that __GLIBCPP__ wasn't updated :/

Actual changes of signatures:

 --- fstream.tcc 2001/03/14 20:46:33     1.10
 +++ fstream.tcc 2001/03/27 03:48:16     1.11
 @@ -90,24 +90,14 @@ namespace std

    template<typename _CharT, typename _Traits>
      basic_filebuf<_CharT, _Traits>::
 -    basic_filebuf(int __fd, const char* /*__name*/, ios_base::openmode __mode)
 +    basic_filebuf(__c_file_type* __f, ios_base::openmode __mode)

 --- fstream.tcc 2001/03/27 03:48:16     1.11
 +++ fstream.tcc 2001/04/04 01:02:25     1.12
 @@ -90,15 +90,22 @@ namespace std

    template<typename _CharT, typename _Traits>
      basic_filebuf<_CharT, _Traits>::
 -    basic_filebuf(__c_file_type* __f, ios_base::openmode __mode)
 +    basic_filebuf(__c_file_type* __f, bool __s, ios_base::openmode __mode)

 --- fstream.tcc 2001/04/04 01:02:25     1.12
 +++ fstream.tcc 2001/05/08 03:07:56     1.13
 @@ -90,7 +90,7 @@ namespace std

    template<typename _CharT, typename _Traits>
      basic_filebuf<_CharT, _Traits>::
 -    basic_filebuf(__c_file_type* __f, bool __s, ios_base::openmode __mode)
 +    basic_filebuf(__c_file_type* __f, ios_base::openmode __mode, int_type __s)


Tag names:

Working file: fstream.tcc
head: 1.13
branch:
locks: strict
access list:
symbolic names:
        gcc_latest_snapshot: 1.4.4.2
        gcc_ss_20010514: 1.4.4.2
        gcc_ss_20010507: 1.4.4.1
        gcc_ss_20010430: 1.4.4.1
        gcc_ss_20010423: 1.4.4.1
        gcc_ss_20010416: 1.4.4.1
        gcc_ss_20010409: 1.4.4.1
        libstdc++_2_92: 1.12
        gcc_ss_20010402: 1.4.4.1
        gcc_ss_20010326: 1.4.4.1
        gcc_ss_20010320: 1.4.4.1


Yet, my cvs update on 2001-05-17 of , I still have:

#define __GLIBCPP__ 20010417

However, the version number (1.4.4.1 versus 1.12) and actual
snapshot releases confuse me.  So if someone can enlighten me.
How can I make sure that using any snapshot my application will
use the correct signature?

Hopefully __GLIBCPP__ will *always* be a date?  Then I can use
#if __GLIBCPP__ > 20010417   etc.

-- 
Carlo Wood <carlo@alinoe.com>

PS #define _GLIBCPP_VERSION "2.91"
   Doesn't look correct either.  I suppose this comes from
   libstdc++-v3/acinclude.m4:
   AM_INIT_AUTOMAKE(libstdc++, 2.91)
   But then why was there a cvs tag libstdc++_2_92 added
   a month(!) ago?



More information about the Libstdc++ mailing list