Re: [boost] BGL: random_access_iterator_property_map missing?

2003-01-05 Thread Vladimir Prus
Douglas Gregor wrote: On Saturday 04 January 2003 11:53 am, Vladimir Prus wrote: I was just going to use the class named in the subject. Unfortunately, it can't be found anywhere. Here what grep on an up-to-date CVS tree gives: You probably want "iterator_property_map", which takes a RandomAc

[boost] BGL: concept docs buglets

2003-01-05 Thread Vladimir Prus
I think that BGL concept docs are a little bit out of sync with the concept cheking code. I've corrected some of problems and attach a patch. Is it OK to apply it? Another issue is that doc talk about MutablePropertyGraphConcept, while code has LvaluePropertyGraphConcept. I'm not sure which one i

Re: [boost] [MPL] naming question

2003-01-05 Thread David Abrahams
Aleksey Gurtovoy <[EMAIL PROTECTED]> writes: > David Abrahams wrote: >> Aleksey Gurtovoy <[EMAIL PROTECTED]> writes: >> >> > >> > So, now the question is, how to name the adaptor? :) Does >> > 'unroll_args' sound right/good enough? >> >> Neat idea! How about "unary" or "unaryize"? > > I like th

Re: [boost] possible error in documentation of call traits

2003-01-05 Thread John Maddock
> In note #3 it says that param_type requires partial specialization; however, > it seems to work fine > with vc7. Does it mean that param_type defaults to const T& if partial > specialisation is not available? There is a special workaround version for MSVC which almost does the right thing (it's

Re: [boost] is the link-fail test working correctly in the regressiontests?

2003-01-05 Thread John Maddock
> That sounds like a smart move. It should be easy enough if we can > encode that feature into the toolsets. Can you take care of that part > of the job? If so, it would be very easy for me to update testing.jam > and we'd be done. Not easily, I don't currently have access to those compilers (a

Re: [boost] is the link-fail test working correctly in theregression tests?

2003-01-05 Thread David Abrahams
"John Maddock" <[EMAIL PROTECTED]> writes: >> That sounds like a smart move. It should be easy enough if we can >> encode that feature into the toolsets. Can you take care of that part >> of the job? If so, it would be very easy for me to update testing.jam >> and we'd be done. > > Not easily,

[boost] std::wstring exists on GCC 3.2?

2003-01-05 Thread Terje Slettebø
Hi. I've tried to compile something which uses std::wstring on GCC 3.2 (MinGW), but I get the following error at link-time: undefined reference to `std::basic_string, std::allocator >::basic_string()' Using std::string works fine. Doesn't GCC 3.2 support wide character strings? BOOST_NO_STD_WSTR

[boost] Boost license

2003-01-05 Thread Yitzhak Sapir
A while ago there was a call for license reviews. Various licenses were listed at: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?Boost_License for review. The STLPort license, which is available at: http://www.stlport.org/doc/license.html was not listed (or at least does

[boost] bounded multiset

2003-01-05 Thread Vladimir Prus
I'm in a need of a container, which: - is sorted - has iterators which are not invalidated on 'insert' - keeps no more than k elements. If more elements are inserted, the smallest ones should be erased. I'm considering writing a wrapper over std::multiset for this purpose. But before I star

Re: [boost] Boost license

2003-01-05 Thread David Abrahams
Yitzhak Sapir <[EMAIL PROTECTED]> writes: D> A while ago there was a call for license reviews. Various licenses were > listed at: > > http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?Boost_License > > for review. The STLPort license, which is available at: > > http://www.stlpor

Re: [boost] bounded multiset

2003-01-05 Thread David Abrahams
Vladimir Prus <[EMAIL PROTECTED]> writes: > I'm in a need of a container, which: > > - is sorted > - has iterators which are not invalidated on >'insert' > - keeps no more than k elements. If more elements are >inserted, the smallest ones should be erased. > > > I'm considering writing a w

Re: [boost] std::wstring exists on GCC 3.2?

2003-01-05 Thread Lars Gullik Bjønnes
Terje Slettebø <[EMAIL PROTECTED]> writes: | Hi. | | I've tried to compile something which uses std::wstring on GCC 3.2 (MinGW), | but I get the following error at link-time: Gcc 3.2 have wstring... could the problem be how MinGW is configured? -- Lgb __

[boost] Re: is the link-fail test working correctly in theregression tests?

2003-01-05 Thread Alisdair Meredith
David Abrahams wrote: > ...although now the only expected failure tests we have left are > compile-fail. So I don't know what to do with the others. Could we introduce a third result. Pass and fail we know, 'error' would the test could not actually be run. This would reflect a compile fail for

[boost] Boost.Preprocessor: LPAREN & RPAREN

2003-01-05 Thread Vesa Karvonen
Hi, I have never used these two macros, but is the following code, from "boost/preprocessor/punctuation/paren.hpp", correct? # /* BOOST_PP_LPAREN */ # # define BOOST_PP_LPAREN() ( # # /* BOOST_PP_RPAREN */ # # define BOOST_PP_RPAREN() ( By the way, I think that the copyright on this file (and p

Re: [boost] bounded multiset

2003-01-05 Thread Vladimir Prus
David Abrahams wrote: Vladimir Prus <[EMAIL PROTECTED]> writes: I'm in a need of a container, which: - is sorted - has iterators which are not invalidated on 'insert' - keeps no more than k elements. If more elements are inserted, the smallest ones should be erased. I'm considering writi

Re: [boost] Filesystem Library mini-review

2003-01-05 Thread Peter Dimov
From: "Beman Dawes" <[EMAIL PROTECTED]> > > At first glance eliminating the dependency on path seems like a win, but > I'm worried about the future. > > I think there is at least some chance that path can be expanded to include > the ability to handle wide character names. That's an excellent poin

Re: [boost] std::wstring exists on GCC 3.2?

2003-01-05 Thread Terje Slettebø
>From: "Lars Gullik Bjønnes" <[EMAIL PROTECTED]> > Terje Slettebø <[EMAIL PROTECTED]> writes: > > | I've tried to compile something which uses std::wstring on GCC 3.2 (MinGW), > | but I get the following error at link-time: > > Gcc 3.2 have wstring... could the problem be how MinGW is configured?

Re: [boost] Re: is the link-fail test working correctly intheregression tests?

2003-01-05 Thread David Abrahams
Alisdair Meredith <[EMAIL PROTECTED]> writes: > David Abrahams wrote: > >> ...although now the only expected failure tests we have left are >> compile-fail. So I don't know what to do with the others. > > Could we introduce a third result. Pass and fail we know, 'error' would > the test could no

[boost] BGL: more doc buglets

2003-01-05 Thread Vladimir Prus
I've come across more problems with documentation. 1. The docs for topological_sort say that if (u,v) edge is present, then u comes before v in the topological order. I was assuming that if I store the order in vector, then u will be found before v. Instead, the order is reversed! This c

Re: [boost] reference_wrapper as functor

2003-01-05 Thread Peter Dimov
From: "Joel de Guzman" <[EMAIL PROTECTED]> > From: "Peter Dimov" <[EMAIL PROTECTED]> > [...] > > ref(x)(...) can mean two different things, both reasonable. One is to simply > > return x. The other is to return x(...). The convention we have adopted so > > far in bind and function is to treat ref a

[boost] file_system prefomace problem (?)

2003-01-05 Thread Daniel Yerushalmi
Hi All I have code that iterate on directory tree (the recursive function) addFolder. I had profiled it (MSVC 6.5) Func Func+Child Hit Time % Time % Count Function - 28.780 43.2

Re: [boost] [MPL] naming question

2003-01-05 Thread David A. Greene
David Abrahams wrote: thought, I am not sure if it's a good choice. Does apply< unarize, list >::type convey the discussed meaning for you? No, but I'm not sure that unroll_args does either. unroll_args doesn't, in fact, unroll arguments. It's a metafunction adapter. "Unroll" is usually

[boost] Boost.Preprocessor: Alternatives to defined(x)

2003-01-05 Thread Vesa Karvonen
Hi, A typical use of the C preprocessor is to use object-like macros as flags for controlling code expansion: #if defined(OBJECT_LIKE_MACRO) EXPANDED_IF_DEFINED #else EXPANDED_IF_NOT_DEFINED #endif The OBJECT_LIKE_MACRO is usually defined either in some configuration header, or it may

[boost] file_system prefomace problem (more)

2003-01-05 Thread Daniel Yerushalmi
Hi all One more thing: I think that the same algoritm as for is_directory should be caried out for other path attribute (that ::FindNextFileA retrive) like dates, permissin etc. cheers Daniel. ___ Unsubscribe & other changes: http://lists.boost.org/

Re: [boost] Boost.Preprocessor: Alternatives to defined(x)

2003-01-05 Thread David Abrahams
"Vesa Karvonen" <[EMAIL PROTECTED]> writes: > I'd like to propose adding suitable predicate macros, in particular > BOOST_PP_IS_EMPTY(X), BOOST_PP_IS_1(X), BOOST_PP_IS_EMPTY_OR_1(X), I like them (and I like the implementations)! > to the Boost Preprocessor library to help detect whether flag lik

Re: [boost] Boost.Preprocessor: Alternatives to defined(x)

2003-01-05 Thread Vesa Karvonen
David Abrahams: Vesa Karvonen: > to the Boost Preprocessor library to help detect whether flag like > macros are defined. These macros would make it easier to move some > logic from unusable #if blocks into usable macros. Can you show an example of such a transformation? I got this idea while

Re: [boost] Filesystem Library mini-review

2003-01-05 Thread Beman Dawes
At 10:02 AM 1/5/2003, Peter Dimov wrote: >From: "Beman Dawes" <[EMAIL PROTECTED]> >> >> At first glance eliminating the dependency on path seems like a win, but >> I'm worried about the future. >> >> I think there is at least some chance that path can be expanded to >> include the ability to hand

Re: [boost] file_system prefomace problem (more)

2003-01-05 Thread Beman Dawes
At 11:55 AM 1/5/2003, Daniel Yerushalmi wrote: >Hi all >One more thing: >I think that the same algoritm as for is_directory should be caried out for >other path attribute (that ::FindNextFileA retrive) like dates, permissin >etc. See Jan Langer's attribute work: >hi, >i just put the attribute

Re: [boost] Filesystem Library mini-review

2003-01-05 Thread Peter Dimov
From: "Beman Dawes" <[EMAIL PROTECTED]> > At 10:02 AM 1/5/2003, Peter Dimov wrote: > > >That's an excellent point, and I'm glad that wide paths aren't completely > >out of the question! > > I had a conversation with Bill Plauger, Howard Hinnant, and several other > library implementors at the las

Re: [boost] Boost.Preprocessor: LPAREN & RPAREN

2003-01-05 Thread Paul Mensonides
- Original Message - From: "Vesa Karvonen" <[EMAIL PROTECTED]> > Hi, > > I have never used these two macros, but is the following code, from > "boost/preprocessor/punctuation/paren.hpp", correct? > # define BOOST_PP_RPAREN() ( Yeah, I fixed it. Oops. > By the way, I think that the cop

Re: [boost] Boost.Preprocessor: Alternatives to defined(x)

2003-01-05 Thread Paul Mensonides
- Original Message - From: "David Abrahams" <[EMAIL PROTECTED]> > "Vesa Karvonen" <[EMAIL PROTECTED]> writes: > > > I'd like to propose adding suitable predicate macros, in particular > > BOOST_PP_IS_EMPTY(X), BOOST_PP_IS_1(X), BOOST_PP_IS_EMPTY_OR_1(X), > > I like them (and I like the im

Re: [boost] Boost.Preprocessor: Alternatives to defined(x)

2003-01-05 Thread Paul Mensonides
- Original Message - From: "Vesa Karvonen" <[EMAIL PROTECTED]> Vesa, I hack this up so it works on all compilers and then add it to the CVS. The main problem is that the implementation relies on expansion order. That is another name for "VC and Metrowerks bugs." I don't see why they can'

Re: [boost] Filesystem Library mini-review

2003-01-05 Thread Sean Parent
on 1/5/03 10:21 AM, Beman Dawes at [EMAIL PROTECTED] wrote: > I had a conversation with Bill Plauger, Howard Hinnant, and several other > library implementors at the last C++ committee meeting, and we agreed on a > possible approach to the conversion problem. Conversions between wide and > narrow

Re: [boost] Boost.Preprocessor: Alternatives to defined(x)

2003-01-05 Thread David Abrahams
"Vesa Karvonen" <[EMAIL PROTECTED]> writes: > David Abrahams: >>Vesa Karvonen: >> > to the Boost Preprocessor library to help detect whether flag like macros are >defined. These >> > macros would make it easier to move some logic from unusable #if blocks into >usable macros. > >>Can you show an

Re: [boost] Re: is the link-fail test working correctly intheregression tests?

2003-01-05 Thread David Abrahams
Alisdair Meredith <[EMAIL PROTECTED]> writes: > David Abrahams wrote: > >> ...although now the only expected failure tests we have left are >> compile-fail. So I don't know what to do with the others. > > Could we introduce a third result. Pass and fail we know, 'error' would > the test could no

Re: [boost] Boost.Preprocessor: Alternatives to defined(x)

2003-01-05 Thread Paul Mensonides
- Original Message - From: "Paul Mensonides" <[EMAIL PROTECTED]> > Vesa, I hack this up so it works on all compilers and then add it to the > CVS. The main problem is that the implementation relies on expansion order. > That is another name for "VC and Metrowerks bugs." I don't see why t

Re: [boost] Boost.Preprocessor: Alternatives to defined(x)

2003-01-05 Thread David Abrahams
"Paul Mensonides" <[EMAIL PROTECTED]> writes: > Vesa, I can get it to work on VC and Metrowerks if I alter the semantics > slightly. Namely by doing this: > > #define IS_ZERO(x) IS_ZERO_I( CHECK x () ) > // ... > > #define CHECK() 1 > > The semantic change is that 'x' must not be a function-like

Re: [boost] Boost.Preprocessor: Alternatives to defined(x)

2003-01-05 Thread Vesa Karvonen
From: "Paul Mensonides" <[EMAIL PROTECTED]> Vesa, I can get it to work on VC and Metrowerks if I alter the semantics slightly. Namely by doing this: #define IS_ZERO(x) IS_ZERO_I( CHECK x () ) // ... #define CHECK() 1 The semantic change is that 'x' must not be a function-like macro. What do y

Re: [boost] Boost.Preprocessor: Alternatives to defined(x)

2003-01-05 Thread Vesa Karvonen
David Abrahams: Paul Mensonides: > The semantic change is that 'x' must not be a function-like macro. What do > you think? I think that rules out most of the use-cases Vesa was interested in addressing with this :( Well, it does rule out some use-cases, and it is not ideal to have such limita

Re: [boost] Boost.Preprocessor: Alternatives to defined(x)

2003-01-05 Thread David Abrahams
"Vesa Karvonen" <[EMAIL PROTECTED]> writes: > David Abrahams: >>Paul Mensonides: >> > The semantic change is that 'x' must not be a function-like macro. What do >> > you think? >> >>I think that rules out most of the use-cases Vesa was interested in >>addressing with this :( > > Well, it does rul

Re: [boost] Boost.Preprocessor: Alternatives to defined(x)

2003-01-05 Thread Vesa Karvonen
David Abrahams: > Paul Mensonides: > > The semantic change is that 'x' must not be a function-like macro. ^^^ [...] How can you use a macro which only tells you if a function-like macro is defined to tell you if an object-like macro is defined? If we

[boost] Review results: Optional library

2003-01-05 Thread Douglas Gregor
Fernando Cacciola's Optional library is accepted into Boost. The review process was complicated by continual revision of the Optional library, and for this reason at least one reviewer favored rejection of the library at this time. However, the author and reviewers were quick t

Re: [boost] Boost.Preprocessor: Alternatives to defined(x)

2003-01-05 Thread Paul Mensonides
- Original Message - From: "Vesa Karvonen" <[EMAIL PROTECTED]> > By the way, I just found the following article (after I posted my proposed > IS_EMPTY()): > > http://groups.google.com/groups?q=is_empty+paul+mensonides&hl=en&lr=&ie=UTF- 8&oe=UTF-8&selm=2HB49.54872%24D36.57225%40rwcrnsc53&rn

Re: [boost] Boost.Preprocessor: Alternatives to defined(x)

2003-01-05 Thread Paul Mensonides
- Original Message - From: "David Abrahams" <[EMAIL PROTECTED]> > > Well, it does rule out some use-cases, and it is not ideal to have such limitations, but it should > > still be useful for testing whether an object-like macro, such as an include guard, or a config > > macro, has been def

Re: [boost] Boost.Preprocessor: Alternatives to defined(x)

2003-01-05 Thread Paul Mensonides
- Original Message - From: "Vesa Karvonen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, January 05, 2003 3:45 PM Subject: Re: [boost] Boost.Preprocessor: Alternatives to defined(x) > David Abrahams: > > > Paul Mensonides: > > > > The semantic change is that 'x' must not be a

Re: [boost] Boost.Preprocessor: Alternatives to defined(x)

2003-01-05 Thread Paul Mensonides
- Original Message - From: "Paul Mensonides" <[EMAIL PROTECTED]> > Anyway, I might still be able to make the original ideal work with VC and > Metrowerks. (You wouldn't believe how sick I am of those two compilers!) > Give me some time Actually it is not possible anyway. Not necessa

[boost] UTF library available for review

2003-01-05 Thread Alberto Barbati
Hi Boosters, I have put in the Boost file section the first version of my UTF library. You can find it here: http://groups.yahoo.com/group/boost/files/utf/ A couple of months ago, I posted a message to check if there was interest in such a library and I got just one answer from Vladimir Prus

[boost] Re: UTF library available for review

2003-01-05 Thread Alberto Barbati
Alberto Barbati wrote: * a comprehensive test suite (with Jamfile) I almost forgot! The test suite requires the filesystem library. Special thanks to Beman Dawes for it! Alberto ___ Unsubscribe & other changes: http://lists.boost.org/mailman/listi