ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
[boost] Re: [dynamic bitset] Wrong test for MSVC6/7 and dinkumwarelib?
by Markus =?iso-8859-1?Q?Sch=F6pflin?= other posts by this author
Oct 1 2002 7:50AM messages near this date
[boost] [dynamic bitset] Wrong test for MSVC6/7 and dinkumware lib? | [boost] Re: [dynamic bitset] Wrong test for MSVC6/7 and dinkumware lib?
Gennaro Prota wrote:
>  
>  On Mon, 30 Sep 2002 17:54:06 +0200, Markus Schöpflin
>  <markus.schoepflin@[...].com> wrote:
>  
>  [snip]
>  >Hmm, doesn't this code trigger whenever _CPPLIB_VER isn't defined?
>  
>  Yes, that's another sufficient condition.
>  
>  >Currently, this is the reason why the tests for dynamic_bitset fail on
>  >vacpp 5. If you change the macro (and the one in
>  >detail/dynamic_bitset.hpp), the tests pass.
>  
>  You are right, of course. I hope to hear soon from Jeremy. I don't
>  have write access to the CVS, so I'll fix the file but you won't see
>  it in the repository until he will commit it.

Well, if you have a fix and Jeremy gives his ok, I could apply it.

>  
>  BTW, your correction isn't correct either: this sorts of "negative
>  tests" (test what there isn't, instead of what there is) are always
>  dangerous :-)

I don't get this one. Let's analyse the macro as proposed.

#if (defined(_MSC_VER) && (_MSC_VER <= 1300)) // true for MSVC <=7.0
&& (!defined(_CPPLIB_VER) // true if _CPPLIB_VER not defined
   || (_CPPLIB_VER < 306)) // true if _CPPLIB_VER < 306

This means the macro evaluates to true iff the compiler is MSVC <= 7.0
AND the is no dinkumware lib or it's version is less than 306.

Did I make a mistake, here?

Markus


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
=?ISO-8859-1?Q?Markus_Sch=F6pflin?=
Markus =?iso-8859-1?Q?Sch=F6pflin?=
Gennaro Prota
=?ISO-8859-1?Q?Markus_Sch=F6pflin?=
Gennaro Prota

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved