Edward Diener | 1 Jan 03:19 2003

Re: Compile error when build boost with vc 7 and vc 7.1

"Beman Dawes" <bdawes <at> acm.org> wrote in message
news:4.3.2.7.2.20021231164805.01aa20c0 <at> mailhost.esva.net...
> At 03:07 AM 12/31/2002, Black Ice wrote:
>
>  >The last version of boost has got by CVS.
>  >set BOOST_ROOT=d:\boost\boost
>  >set VC7_ROOT=D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7
>  >bjam "-sTOOLS=vc7"
>  >
>  >Command line error D2016 : '/Za' and '/Ze' command-line options are
>  >incompatible
>
> Sounds like something in your setup is bonkers. The vc7 toolset has been
> problem free for a long time.
>
> For the .NET 2003 (aka 7.1) testing of the Boost libraries I did in
> September, I added switches /Op -Zc:wchar_t.  IIRC, someone from Microsoft
> suggested them for the Boost libraries.

If you use the switch you mentioned, be aware that you are compiling with
C++ native wchar_t support, which is probably what you want, but that if
someone else tries to use the library and does not use this switch, which
means the previous VC++ typedef compatibility for wchar_t, they will fail
during the link phase if you are exporting any functions which pass or
return wchar_t in any way in your library.

I think Boost should promote native C++ wchar_t support, but of course this
will break user modules which take the default. Presently Regex++ uses the
default and not the switch above.

(Continue reading)

John Maddock | 1 Jan 12:47 2003
Picon

Re: RegEx: (?= ) and (?! )

> I am using RegEx in Boost v1.29.0.
> (?= ) and (?! ) expressions do not seem to work at a certain
> condition.
>
> In the following example, "(?=a)b" should match "b" in "xyzabcdefg",
> but does not.

Which is correct: (?=a) is a forward lookahead *possitive* assertion, so
(?=a)b can never match anything since the next character can't be both an
'a' and a 'b' at the same time!

> Similarly, "(?!a)b" should not match "b" in "xyzabcdefg" but it does.

It should match: (?!a) will match anything except 'a' so (?!a)b will match
the next 'b' that it finds.

John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/index.htm

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Flexible Keyboard is the ideal accessory for PDA users that are on the move.
http://us.click.yahoo.com/dCBVZC/WnCFAA/xGHJAA/EbFolB/TM
---------------------------------------------------------------------~->

Info: <http://www.boost.org>
Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl>
Unsubscribe: <mailto:boost-users-unsubscribe <at> yahoogroups.com>

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

(Continue reading)

Beman Dawes | 1 Jan 15:11 2003
Picon

Re: Re: Compile error when build boost with vc 7 and vc 7.1

At 09:19 PM 12/31/2002, Edward Diener wrote:

 >"Beman Dawes" <bdawes <at> acm.org> wrote in message
 >news:4.3.2.7.2.20021231164805.01aa20c0 <at> mailhost.esva.net...
 >> At 03:07 AM 12/31/2002, Black Ice wrote:
 >>
 >>  >The last version of boost has got by CVS.
 >>  >set BOOST_ROOT=d:\boost\boost
 >>  >set VC7_ROOT=D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7
 >>  >bjam "-sTOOLS=vc7"
 >>  >
 >>  >Command line error D2016 : '/Za' and '/Ze' command-line options are
 >>  >incompatible
 >>
 >> Sounds like something in your setup is bonkers. The vc7 toolset has 
been
 >> problem free for a long time.
 >>
 >> For the .NET 2003 (aka 7.1) testing of the Boost libraries I did in
 >> September, I added switches /Op -Zc:wchar_t.  IIRC, someone from
 >Microsoft
 >> suggested them for the Boost libraries.
 >
 >If you use the switch you mentioned, be aware that you are compiling with
 >C++ native wchar_t support, which is probably what you want, but that if
 >someone else tries to use the library and does not use this switch, which
 >means the previous VC++ typedef compatibility for wchar_t, they will fail
 >during the link phase if you are exporting any functions which pass or
 >return wchar_t in any way in your library.
 >
(Continue reading)

Beman Dawes | 1 Jan 15:02 2003
Picon

Re: Success stories

At 10:47 AM 12/31/2002, Miki_Tebeka <at> amat.com wrote:

 >Hello All,
 >
 >I'm trying to convince my boss to use boost.
 >Any helpful success stories/big users/anything that can help?

You might mention to him that a dozen or so of the Boost libraries are in 
process of being standardized by WG21/J16, the International Standards 
Organization's (ISO) C++ Standards Committee, and so will eventually become 
a part of the C++ Standard itself.

That might sum up the quality of the Boost libraries in a way your boss can 
understand.

HTH,

--Beman

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Flexible Keyboard is the ideal accessory for PDA users that are on the move.
http://us.click.yahoo.com/dCBVZC/WnCFAA/xGHJAA/EbFolB/TM
---------------------------------------------------------------------~->

Info: <http://www.boost.org>
Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl>
Unsubscribe: <mailto:boost-users-unsubscribe <at> yahoogroups.com>

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

(Continue reading)

agiatojon | 1 Jan 16:09 2003
Picon

Error in testing tuple

Happy Holidays to everyone! I am getting aquainted with the tuple 
class but am encountering the following error:

c:\BGL\boost_1_29_0\boost\tuple\tuple_comparison.hpp(119): error 
C2027: use of undefined type 'boost::STATIC_ASSERTION_FAILURE<x>'
with
[
x=false
]

with the following program:

/**
* tupleTest.cpp
* Test of Boost library class tuple
* A tuple is a fixed size collection of elements
* Stored objects may be of different types
* Current support of tuples with 0-10 objects
* Objects may be any valid C++ type except void and function types
* Jon Agiato
* 12-23-02
*/

#include <iostream>
using std::cout;
using std::cin;
using std::ostream;
using std::cerr;

#include <cstdlib>
(Continue reading)

David Abrahams | 1 Jan 16:33 2003
Picon
Picon

Re: Error in testing tuple

"agiatojon <JonAgiato <at> nyc.rr.com>" <JonAgiato <at> nyc.rr.com> writes:

> Happy Holidays to everyone! I am getting aquainted with the tuple 
> class but am encountering the following error:
>
> c:\BGL\boost_1_29_0\boost\tuple\tuple_comparison.hpp(119): error 
> C2027: use of undefined type 'boost::STATIC_ASSERTION_FAILURE<x>'
> with
> [
> x=false
> ]
>
> with the following program:
<snip>

> tuple<A, B, C> testTuple;
> cout << testTuple << '\n';
>
> tuple<B, A> test2Tuple;
> if(testTuple == test2Tuple)

http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#relational_operators
says:

    "Note that an attempt to compare two tuples of different lengths
     results in a compile time error."

P.S. When posting code, turn tabs into spaces if you want indentation
to be preserved.

(Continue reading)

Edward Diener | 1 Jan 16:57 2003

Re: Re: Compile error when build boost with vc 7 and vc 7.1

"Beman Dawes" <bdawes <at> acm.org> wrote in message
news:4.3.2.7.2.20030101090516.0224d558 <at> mailhost.esva.net...
> At 09:19 PM 12/31/2002, Edward Diener wrote:
> On one hand, it is a always nice if Boost libraries work with default
> compiler switches. OTOH, we really want to push in the direction of
> increased standards compliance, and that may mean requiring switches.
>
> FWIW, some people within Microsoft are pushing for the increased
compliance
> switches like -Zc:wchar_t to become the default in the release after 7.1.
>
>  >A possible solution, but one that entails more work, is to support both
> for
>  >VC++ with slightly different library names, one with C++ native wchar_t
>  >support and the other without. This involves more builds and more
> libraries
>  >distributed for VC++ but will not leave the end user in the lurch who
> does
>  >not match the option chosen when the library is built.
>
> I'll leave that decision to John Maddock and the others most directly
> affected.

Perhaps the decision should be made consistent throughout any Boost library
exporting wchar_t functionality. A new Boost macro might be able to enforce
it for VC++ 7.0 and higher throughout Boost. I am sure it would be
disconcerting to end users to find that Boost implementation X, which uses
wchar_t for VC++, uses it one way while Boost implementation Y, which uses
wchar_t for VC++, uses it the opposite way.

(Continue reading)

Jon Agiato | 1 Jan 19:27 2003
Picon

Re: Re: Error in testing tuple

----- Original Message ----- 
  From: David Abrahams 
  To: boost-users <at> yahoogroups.com 
  Sent: Wednesday, January 01, 2003 10:33 AM
  Subject: [Boost-Users] Re: Error in testing tuple

  "agiatojon <JonAgiato <at> nyc.rr.com>" <JonAgiato <at> nyc.rr.com> writes:

  > Happy Holidays to everyone! I am getting aquainted with the tuple 
  > class but am encountering the following error:
  >
  > c:\BGL\boost_1_29_0\boost\tuple\tuple_comparison.hpp(119): error 
  > C2027: use of undefined type 'boost::STATIC_ASSERTION_FAILURE<x>'
  > with
  > [
  > x=false
  > ]
  >
  > with the following program:
  <snip>

  > tuple<A, B, C> testTuple;
  > cout << testTuple << '\n';
  >
  > tuple<B, A> test2Tuple;
  > if(testTuple == test2Tuple)

  http://www.boost.org/libs/tuple/doc/tuple_users_guide.html#relational_operators
  says:

(Continue reading)

Black Ice | 2 Jan 05:19 2003
Picon

Re: Compile error when build boost with vc 7 and vc 7.1

I reinstall VC 7.1 and delete boost. Then do the following works:

d:
cd boost
cvs -d:pserver:anonymous <at> cvs.boost.sourceforge.net:/cvsroot/boost login
[press return]
cvs -z3 -d:pserver:anonymous <at> cvs.boost.sourceforge.net:/cvsroot/boost
checkout boost
cvs -d:pserver:anonymous <at> cvs.boost.sourceforge.net:/cvsroot/boost logout

now got last version of boost

cd boost
cd tools
cd build
cd jam_src
build.bat

some message on screen:
Setting environment for using Microsoft Visual C++ tools.
###
### Using 'msvc' toolset.
###
...

now got bjam.exe

then do following work:
cd..
cd..
(Continue reading)

ksaleh2 | 1 Jan 18:21 2003
Picon

Re: Simple boost program throws exception

Hi,

On December 7th I've posted this message, which unfortunately didn't 
get any reply. I'm not a professional programmer, so forgive me if it 
is a silly question, but your cooperation will help me understand 
boost better, thank you and happy new year to all.

--- In Boost-Users <at> yahoogroups.com, "ksaleh2 <ksaleh2 <at> y...>" 
<ksaleh2 <at> y...> wrote:
> I'm trying boost for the first time on Codewarrior 8.0 for windows. 
> The Boost version is 1.25.1 from the "Boost Graph Library" 
> accompanying CD. The offensive code is :
> 
> #include <boost/config.hpp>
> #include <iostream>
> 
> #include <boost/graph/adjacency_list.hpp>
> 
> using namespace boost;
> using namespace std;
> 
> 
> int main()
> {
>   	typedef adjacency_list<vecS,vecS,directedS,
>     property < vertex_name_t, char 
>,property<edge_weight_t,double>  
> > Graph;
>     
> 	property_map < Graph, vertex_name_t >::type    name_map ;
(Continue reading)


Gmane