Re: [boost] posix_time to timeval conversion

2003-06-23 Thread Jeremy Maitin-Shepard
On Mon, Jun 23, 2003 at 06:53:28AM -0700, Jeff Garland wrote: > [snip] > Ok will do. I'll add some protections or rounding for when durations > support higher than microsecond resolution. I'll let you know when > this gets added. It seems that since 1) timeval is non-(C++) standard, and 2) it is

[boost] WCHAR_MIN/MAX not defined for NetBSD in integer_traits.h

2003-06-23 Thread felix zaslavskiy
NetBSD does not have WCHAR_MIN/MAX using gcc3.3 basicaly the min/max for wchar_t is INT_MIN/MAX similarly to freeBSD I encountered this problem when trying to compile boost.python which failed because of this problem. ___ Unsubscribe & other changes:

RE: [boost] RE: Math constants - efficiency

2003-06-23 Thread Paul A. Bristow
| -Original Message- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED] Behalf Of Daniel Frey | Sent: Monday, June 23, 2003 7:44 PM | To: [EMAIL PROTECTED] | Subject: [boost] RE: Math constants - efficiency | | | On Mon, 23 Jun 2003 19:54:36 +0200, Paul A. Bristow wrote: | | > These are

[boost] Re: [mpl] workaround needed for Borland

2003-06-23 Thread David Abrahams
Aleksey Gurtovoy <[EMAIL PROTECTED]> writes: > David Abrahams wrote: >> Eric Friedman <[EMAIL PROTECTED]> writes: >> > I'd apply the patch myself, but due to the heavy use of preprocessed >> > headers, I'm worried I won't get it completely right. So I'll leave >> > it up to Aleksey (or others)

[boost] Re: Inter-FSM protocol discussion

2003-06-23 Thread Andreas Huber
Chris, Sorry for the long delay, I was swamped with other stuff. The longer I think about your suggestions about FSM protocols the more do I think that coded FSM protocol specifications are not worth the effort. Even worse, I believe they will inevitably lead to code duplication. However, since I

Re: [boost] [BGL] Yet another patch for nonrecursive DFS

2003-06-23 Thread Bruce Barr
Hi Vladimir, Vladimir Prus wrote: > There's another question: why store "u" at all. I'm > guessing "source(*ei, g)" might be more efficient? That's a good thought, but there might be a problem trying to dereference a past-the-end iterator. I mentioned before that ei_end could always be generated

[boost] Trouble building latest CVS (Intel 7.1 and VC7)

2003-06-23 Thread Nicodemus
Hi there, I just checked out the latest CVS and I am having trouble building it. My environment is: - Windows XP - Intel Version 7.1, Build 20030402Z - Visual C++ 7.0 All my environment variables are setup correctly (INCLUDE, LIB, MSVCDIR, INTEL_PATH, PATH). The command line I am using with bja

[boost] date_time, lexical_cast and MSVC 7.0

2003-06-23 Thread Philip Miller
Hello, Since this is my first posting to the Boost List, let me first say thanks for Boost. It looks like a great resource! My first use of Boost will be the date_time library, followed by the file_system library. Now, the reason for my posting. I am using MSVC 7.0 and am unable to compile the

[boost] Re: Math Constants Formal Review - using namespaces toselectfloatsize is simpler?

2003-06-23 Thread Daniel Frey
On Fri, 20 Jun 2003 17:56:51 +0200, Gennaro Prota wrote: > Yes. Just to stimulate discussion, and without any offence towards > Daniel's solution, this is an approach without the conversion function > and the operator overloads. Beware that it's completely untested. > > [snip] > > It's not so "ad

[boost] RE: Math constants - efficiency

2003-06-23 Thread Daniel Frey
On Mon, 23 Jun 2003 19:54:36 +0200, Paul A. Bristow wrote: > These are interesting results, but my enthusiasm is severely reduced by > the fact that MSVC 7.1 (Standard) chokes terminally on both versions > :-(( > > Compiling... > Frey_bench_mark_gcc.cpp > Frey_bench_mark_gcc.cpp(82) : warning C43

RE: [boost] Math constants - efficiency

2003-06-23 Thread Paul A. Bristow
These are interesting results, but my enthusiasm is severely reduced by the fact that MSVC 7.1 (Standard) chokes terminally on both versions :-(( Compiling... Frey_bench_mark_gcc.cpp Frey_bench_mark_gcc.cpp(82) : warning C4305: 'return' : truncation from 'double' to 'float' Frey_bench_mark_gcc.cpp

Re: [boost] posix_time to timeval conversion

2003-06-23 Thread Stefan Seefeld
Jeff Garland wrote: Ok will do. I'll add some protections or rounding for when durations support higher than microsecond resolution. I'll let you know when this gets added. Thanks a lot ! Stefan ___ Unsubscribe & other changes: http://lists.boost.org

[boost] [Boost-bugs] [ boost-Support Requests-759244 ] Gregorian date support

2003-06-23 Thread SourceForge.net
Support Requests item #759244, was opened at 2003-06-23 17:09 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=207586&aid=759244&group_id=7586 Category: None Group: None Status: Open Resolut

RE: [boost] posix_time to timeval conversion

2003-06-23 Thread Jeff Garland
S. Seefeld wrote > I'd suggest these two converters to be added: > > timeval to_timeval(const ptime &t) >... > > timeval to_timeval(const time_duration &d) >... > > the latter is especially useful as select() operates with durations, > so there is no need to convert between 1970-01-01 relative

[boost] [Boost-bugs] [ boost-Bugs-759218 ] Gregorian dates bugs

2003-06-23 Thread SourceForge.net
Bugs item #759218, was opened at 2003-06-23 16:31 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107586&aid=759218&group_id=7586 Category: None Group: None Status: Open Resolution: None Pr

[boost] Re: Math Constants Formal Review

2003-06-23 Thread Daniel Frey
Terje Slettebø wrote: From: "Daniel Frey" <[EMAIL PROTECTED]> On Sun, 22 Jun 2003 22:01:19 +0200, Terje Slettebø wrote: Another thing, are the ADD_OPERATOR macro in your code necessary? It compiles fine without it on Intel C++ 7.1. The GCC doesn't work without the operators, as it doesn't implici

Re: [boost] posix_time to timeval conversion

2003-06-23 Thread Stefan Seefeld
Jeff Garland wrote: I'd like to replace my code by boost::date_time, but conversion from boost::date_time to timeval doesn't seem to be supported. You are right, but this would make a nice addition. I'd suggest these two converters to be added: timeval to_timeval(const ptime &t) { ptime timet

[boost] RE: [mpl] workaround needed for Borland

2003-06-23 Thread Aleksey Gurtovoy
David Abrahams wrote: > Eric Friedman <[EMAIL PROTECTED]> writes: > > I'd apply the patch myself, but due to the heavy use of preprocessed > > headers, I'm worried I won't get it completely right. So I'll leave > > it up to Aleksey (or others) to fix. > > AFAICT, Aleksey is the only one who kno

[boost] RE: [mpl] workaround needed for Borland

2003-06-23 Thread Aleksey Gurtovoy
Eric Friedman wrote: > Aleksey (and all), > > In working on porting boost::variant to Borland, I've come across some > trouble with a bug in the compiler. > > Specfically, I'm getting "Cannot have both a template class and > function named 'bind1st'" and similarly for bind2nd. I know other MPL > h

[boost] Re: iterator_adaptors.hpp - typo?

2003-06-23 Thread David Abrahams
"John Torjo" <[EMAIL PROTECTED]> writes: > When creating the STATIC_CONSTANTs, was "|" what was meant, or was "||" > meant to be there, like this: > BOOST_STATIC_CONSTANT( > bool, is_input_or_output_iter > = > (boost::is_convertible::value > || > boost::is_co

Re: [boost] Filesystem problem

2003-06-23 Thread John Maddock
> Comments? Sounds reasonably to me, but I admit that I don't really understand POSIX filesystems. I guess what I really wanted was something that would be equivalent to "rm -f file", remember that we already have the equivalent to "rm -r path". Of course I don't know how one would implement th

Re: [boost] Re: BOOST_STATIC_ASSERT - a little better

2003-06-23 Thread John Torjo
- Original Message - From: "Pavel Vozenilek" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 20, 2003 12:38 PM Subject: [boost] Re: BOOST_STATIC_ASSERT - a little better > > "John Torjo" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi all, > > > > I wa

[boost] iterator_adaptors.hpp - typo?

2003-06-23 Thread John Torjo
Hi, Here's some code for the validator class, in iterator_adaptors.hpp: // line 741 // This is really a partial concept check for iterators. Should it // be moved or done differently? template struct validator { BOOST_STATIC_CONSTANT( bool, is_input_or_output_iter

[boost] [sandbox] sequence_algo problem

2003-06-23 Thread Vladimir Prus
I've run into a problem using sandbox::boost/sequence_algo/algorithm.hpp. The header uses "boost::find", but that function can't really be used, because: 1. (minor) it depends on new iterator adaptors, while I'm using sandbox with boost CVS. 2. It's not possible to use boost::find, since, as

[boost] Added new test file, need help testing

2003-06-23 Thread Daryle Walker
I added another test file for the I/O-state saving classes. It's in the main Boost CVS as "boost/libs/io/test/ios_state_unit_test.cpp". I have two compilers installed (GCC 3.1 and CodeWarrior 8). I wrote and tested the new file with CodeWarrior. But my GCC doesn't support the wchar_t part of

Re: [boost] [BGL] Yet another patch for nonrecursive DFS

2003-06-23 Thread Vladimir Prus
Hi Bruce, Bruce Barr wrote: > I'm glad Vladimir got me to take another look at this. > I'm submitting a new patch to replace the one > submitted on May 30. And I'm glad you're willing to polish your patch! > There are other differences between the recursive and > nonrecursive versions that, in

Re: [boost] Re: Re: tokenizer comments

2003-06-23 Thread Pavol Droba
Hi, > Ah... the problem is that those new additions are not documented, AFAICT ;-) > It makes it a little bit hard to understand the interface, especially since > there are no examples/tests for split functionality. Well, as I said, this stuff is quite new, documentation will follow soon, pleas