[boost] Re: Fun PP lib example

2003-08-01 Thread Fernando Cacciola
"Fernando Cacciola" <[EMAIL PROTECTED]> writes: > [snipped] >> So, I like Dave's macro, though I would prefer code generation macros >> not to be put in code directly requiring users to know the inner >> details of expanded code (for debugging, for instance). >> >> Just a thought. > >FWIW, my mac

[boost] Re: Fun PP lib example

2003-08-01 Thread David Abrahams
"Fernando Cacciola" <[EMAIL PROTECTED]> writes: > "Aleksey Gurtovoy" <[EMAIL PROTECTED]> escribió en el mensaje > news:[EMAIL PROTECTED] >> David Abrahams wrote: >> > Here's an example I just cooked up of using the PP lib to solve a >> > classic C++ OO problem: repeated boilerplate in the definiti

[boost] Re: GUI/GDI template library

2003-08-01 Thread David Abrahams
"E. Gladyshev" <[EMAIL PROTECTED]> writes: > I think that any industry standard TEMPLATE library > should be designed in terms of modern C++. The > compilation time should NOT be considred as an issue. Is MPL a modern TEMPLATE library, in your opinion? I ask because compilation time is a very se

[boost] Re: Fun PP lib example

2003-08-01 Thread David Abrahams
"Paul Mensonides" <[EMAIL PROTECTED]> writes: > Aleksey Gurtovoy wrote: >> David Abrahams wrote: >> > Here's an example I just cooked up of using the PP lib to solve a >> > classic C++ OO problem: repeated boilerplate in the definition of >> > Pimpl classes. >> >> There is another variation of

[boost] Re: Re: Re: GUI/GDI template library

2003-08-01 Thread Edward Diener
E. Gladyshev wrote: >> Are you aware that the pImpl idiom is used for many >> different things > > It defenitly has its place but not in modern C++. > >> or have >> you just decided its not modern C++ at all because >> you don't use it for the >> things you want to do ? > > In my opinion modern C++

[boost] Re: Fun PP lib example

2003-08-01 Thread Fernando Cacciola
"Aleksey Gurtovoy" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > David Abrahams wrote: > > Here's an example I just cooked up of using the PP lib to solve a > > classic C++ OO problem: repeated boilerplate in the definition of > > Pimpl classes. > > There is another variation

RE: [boost] Fun PP lib example

2003-08-01 Thread Paul Mensonides
Aleksey Gurtovoy wrote: > David Abrahams wrote: > > Here's an example I just cooked up of using the PP lib to solve a > > classic C++ OO problem: repeated boilerplate in the definition of > > Pimpl classes. > > There is another variation of the idiom, sometimes called > "hidden state", which d

RE: [boost] GUI/GDI template library

2003-08-01 Thread E. Gladyshev
--- Brock Peabody <[EMAIL PROTECTED]> wrote: > > Anyway I think I got the basic idea. The idea is > that > > the GUI elements are classes defined on top of a > > pImpl. Someone else creates the pImpl object and > > passes it to the GUI elements classes. The GUI > > elements then call pImpl meth

Re: [boost] Re: GUI/GDI template library

2003-08-01 Thread E. Gladyshev
--- Douglas Paul Gregor <[EMAIL PROTECTED]> wrote: > On Fri, 1 Aug 2003, E. Gladyshev wrote: > Because one might use multiple threading models in a > single program? Since > we already have a boost::threads design to compare > against, could you > explain how the ImplTraits idiom would improve it?

Re: [boost] Re: GUI/GDI template library

2003-08-01 Thread Douglas Paul Gregor
On Fri, 1 Aug 2003, E. Gladyshev wrote: > > Pimpl definitely has its place. > > I agree, but boost::threads and boost::gui would be > much better of with ImplTraits, in my opinion. Because one might use multiple threading models in a single program? Since we already have a boost::threads design to

RE: [boost] GUI/GDI template library

2003-08-01 Thread Brock Peabody
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of E. Gladyshev > Sent: Friday, August 01, 2003 4:57 PM > To: Boost mailing list > Subject: RE: [boost] GUI/GDI template library > > > Here is a very simplified version of how this can > > happen. > > >

Re: [boost] Re: Re: GUI/GDI template library

2003-08-01 Thread E. Gladyshev
--- Rene Rivera <[EMAIL PROTECTED]> wrote: > [2003-08-01] E. Gladyshev wrote: > > >> Are you aware that the pImpl idiom is used for > many > >> different things > > > >It defenitly has its place but not in modern C++. > > Could you do us the courtesy of indicating who you > are quoting when you

RE: [boost] GUI/GDI template library

2003-08-01 Thread E. Gladyshev
> Here is a very simplified version of how this can > happen. > > template struct edit_imp {...}; > >struct edit { > > template edit_imp > make_gui() {...} >}; > >template struct > gui_wrapper_base { > > //some pure virtual functions >}; > >template > str

Re: [boost] Re: Re: GUI/GDI template library

2003-08-01 Thread Rene Rivera
[2003-08-01] E. Gladyshev wrote: >> Are you aware that the pImpl idiom is used for many >> different things > >It defenitly has its place but not in modern C++. Could you do us the courtesy of indicating who you are quoting when you post to the list. It's very hard to follow otherwise. Not to me

Re: [boost] Fun PP lib example

2003-08-01 Thread Aleksey Gurtovoy
David Abrahams wrote: > Here's an example I just cooked up of using the PP lib to solve a > classic C++ OO problem: repeated boilerplate in the definition of > Pimpl classes. There is another variation of the idiom, sometimes called "hidden state", which doesn't have the shortcoming in the first p

RE: [boost] GUI/GDI template library

2003-08-01 Thread Brock Peabody
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of E. Gladyshev > Sent: Friday, August 01, 2003 3:31 PM > To: Boost mailing list > Subject: RE: [boost] GUI/GDI template library > > > Even if the implementation is parameterized by a > > traits or other

Re: [boost] Re: Re: GUI/GDI template library

2003-08-01 Thread E. Gladyshev
> Are you aware that the pImpl idiom is used for many > different things It defenitly has its place but not in modern C++. > or have > you just decided its not modern C++ at all because > you don't use it for the > things you want to do ? In my opinion modern C++ is more oriented toward program

[boost] shared_container_iterator

2003-08-01 Thread David Abrahams
Hi Ron, What's the status of shared_container_iterator? It's not been converted to the new iterator adaptors. It's in the $boost_root/boost directory but it's not listed in the library index. Was it accepted into the library? -Dave -- Dave Abrahams Boost Consulting www.boost-consulting.com

Re: [boost] Re: GUI/GDI template library

2003-08-01 Thread E. Gladyshev
> Pimpl definitely has its place. I agree, but boost::threads and boost::gui would be much better of with ImplTraits, in my opinion. > If you buy Doug G.'s argument that no application > will use two > GUIs at once No I don't buy Doug's argument at all. Here is an example. //customize the edit

RE: [boost] GUI/GDI template library

2003-08-01 Thread E. Gladyshev
> Even if the implementation is parameterized by a > traits or other class, > we could still use a non template class in the > implementation to reduce > compile times, which is what I though the original > poster was trying to > say. > > template <... typename ImplTraits> class > some_edit_class

[boost] Re: Re: GUI/GDI template library

2003-08-01 Thread Edward Diener
E. Gladyshev wrote: >> Not quite. pImpl is really bad when you have >> multiple interacting >> concrete types. I think you'll find yourself doing >> a lot of >> polymorphic_downcast<>s. > > Another good point against the pImpl idiom. I'd > suggest to overwrite some of the boost libaries that > u

[boost] filesystem/exception.hpp

2003-08-01 Thread David Abrahams
Why aren't there constructors accepting an error_code in boost::fs::exception? I have some code which needs to throw an exception if !is_directory(some_path). I'd like to throw a not_a_directory filesystem exception (or one derived therefrom). Howto? -- Dave Abrahams Boost Consulting www.boos

[boost] Re: GUI/GDI template library

2003-08-01 Thread David Abrahams
"E. Gladyshev" <[EMAIL PROTECTED]> writes: >> Not quite. pImpl is really bad when you have >> multiple interacting >> concrete types. I think you'll find yourself doing >> a lot of >> polymorphic_downcast<>s. > > Another good point against the pImpl idiom. I'd > suggest to overwrite some of the

[boost] Filesystem: create_directories

2003-08-01 Thread David Abrahams
The documentation for create_directories makes no sense. It says only: void create_directories( const path & ph ); Precondition: ph.empty() || forall p: p == ph || is_parent(p, ph): is_directory(p) || !exists( p ) Postcondition: exists(ph) && is_directory(ph) It looks as tho

RE: [boost] GUI/GDI template library

2003-08-01 Thread Brock Peabody
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of E. Gladyshev > Sent: Friday, August 01, 2003 1:23 PM > To: Boost mailing list > Subject: Re: [boost] GUI/GDI template library > > > --- Douglas Gregor <[EMAIL PROTECTED]> wrote: > > > template < type

[boost] Fun PP lib example

2003-08-01 Thread David Abrahams
Here's an example I just cooked up of using the PP lib to solve a classic C++ OO problem: repeated boilerplate in the definition of Pimpl classes. Paul, if you want to put it (or something like it) in the PP lib docs, you're welcome to. // Copyright David Abrahams 2003. Permission to copy, use,

Re: [boost] GUI/GDI template library

2003-08-01 Thread E. Gladyshev
--- Douglas Gregor <[EMAIL PROTECTED]> wrote: > > template < typename IT, typename PhysicalGuiLayer > > > > class ListControl I came with a name for this idiom, ImplTraits idiom. template <... typename ImplTraits > class someclass It is like the name of the pImpl idiom. Eugene _

Re: [boost] Re: GUI/GDI template library

2003-08-01 Thread E. Gladyshev
> Not quite. pImpl is really bad when you have > multiple interacting > concrete types. I think you'll find yourself doing > a lot of > polymorphic_downcast<>s. Another good point against the pImpl idiom. I'd suggest to overwrite some of the boost libaries that use the pImpl thing. It is not l

Re: [boost] GUI/GDI template library

2003-08-01 Thread E. Gladyshev
> 1) It buys us very little: generally template > parameters are useful when > more than one instantiation will be used within any > particular program. It > is highly unlikely that a program will support two > physical GUI layers > simultaneously, I think that it is very likely. For examle

Re: [boost] Re: the boost::signal sample crashes

2003-08-01 Thread E. Gladyshev
> Have you built the signals library multi-threaded or > single threaded and Whatever the default build is. > are you building an application of the same sort? The application is set to use multi-thread run-time libraries and MFC.DLL. > Not seen this specific one, the most common problem >

Re: [boost] Preparing 1.30.1 Release

2003-08-01 Thread Joel de Guzman
Martin Wille <[EMAIL PROTECTED]> wrote: > Joel de Guzman wrote: > >> l.. Added missing include files to miniboost > > For the records: that one doesn't apply to Boost 1.30.1. Yes that's correct. Sorry. -- Joel de Guzman joel at boost-consulting.com http://www.boost-consulting.com http://spir

Re: [boost] Re: Preparing 1.30.1 Release

2003-08-01 Thread Joel de Guzman
David Abrahams <[EMAIL PROTECTED]> wrote: > "Joel de Guzman" <[EMAIL PROTECTED]> writes: >> I'd like to add Spirit 1.6.1 (a bug fix release) to Boost 1.30.1. >> There are no new features in 1.6.1, just bug fixes. Here are >> the list of bug fixes. [snip] >> I am about to commit Spirit 1.6.1 to t

Re: [boost] Preparing 1.30.1 Release

2003-08-01 Thread Douglas Paul Gregor
On Fri, 1 Aug 2003, David Abrahams wrote: > I have put a diff of the changes between Version_1_30_0 and RC_1_30_0 > at http://www.boost-consulting.com/diffs-1-30-1.txt. These will be > the changes that go into the Boost 1.30.1 release. Will the > authors/maintainers of the following libraries ple

Re: [boost] Preparing 1.30.1 Release

2003-08-01 Thread Martin Wille
Joel de Guzman wrote: l.. Added missing include files to miniboost For the records: that one doesn't apply to Boost 1.30.1. Regards, m ___ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Re: [boost] Preparing 1.30.1 Release

2003-08-01 Thread Aleksey Gurtovoy
David Abrahams wrote: > I have put a diff of the changes between Version_1_30_0 and RC_1_30_0 > at http://www.boost-consulting.com/diffs-1-30-1.txt. These will be > the changes that go into the Boost 1.30.1 release. Will the > authors/maintainers of the following libraries please post a brief > s

[boost] Re: Preparing 1.30.1 Release

2003-08-01 Thread David Abrahams
"Joel de Guzman" <[EMAIL PROTECTED]> writes: > David Abrahams <[EMAIL PROTECTED]> wrote: >> I have put a diff of the changes between Version_1_30_0 and RC_1_30_0 >> at http://www.boost-consulting.com/diffs-1-30-1.txt. These will be >> the changes that go into the Boost 1.30.1 release. Will the >

Re: [boost] Preparing 1.30.1 Release

2003-08-01 Thread Joel de Guzman
David Abrahams <[EMAIL PROTECTED]> wrote: > I have put a diff of the changes between Version_1_30_0 and RC_1_30_0 > at http://www.boost-consulting.com/diffs-1-30-1.txt. These will be > the changes that go into the Boost 1.30.1 release. Will the > authors/maintainers of the following libraries ple

[boost] Re: Preparing 1.30.1 Release

2003-08-01 Thread Daniel Frey
David Abrahams wrote: lambda The fix in boost/lambda/detail/operator_return_type_traits.hpp enables you to use the lambda library with GCC 2.95.2, which wasn't possible with the 1.30.0. -- Daniel Frey aixigo AG - financial training, research and technology Schloß-Rahe-Straße 15, 52072 Aa

[boost] Re: searchable list archive + integer.hpp request

2003-08-01 Thread David Abrahams
"Neal D. Becker" <[EMAIL PROTECTED]> writes: > I know I (and others) have previously asked about extending integer.hpp to > handle 64-bit types. I don't recall the conclusions of the discussion, > though, and on visiting the boost archive, I don't see a search > option. How many options do y

[boost] Preparing 1.30.1 Release

2003-08-01 Thread David Abrahams
I have put a diff of the changes between Version_1_30_0 and RC_1_30_0 at http://www.boost-consulting.com/diffs-1-30-1.txt. These will be the changes that go into the Boost 1.30.1 release. Will the authors/maintainers of the following libraries please post a brief summary of the fixes that were a

[boost] Re: Reversed operator helpers?

2003-08-01 Thread Daniel Frey
David Abrahams wrote: Daniel Frey <[EMAIL PROTECTED]> writes: When looking at the current: class X : boost::addable< X > { X& operator+=( const X& ); }; I wonder if addable is a good name. I thought that the classes are named by the operator that is provided by the user and that they add the o

[boost] searchable list archive + integer.hpp request

2003-08-01 Thread Neal D. Becker
I know I (and others) have previously asked about extending integer.hpp to handle 64-bit types. I don't recall the conclusions of the discussion, though, and on visiting the boost archive, I don't see a search option. Perhaps someone can point me in the correct direction. (I would really like

[boost] Re: Reversed operator helpers?

2003-08-01 Thread David Abrahams
Daniel Frey <[EMAIL PROTECTED]> writes: > When looking at the current: > > class X : boost::addable< X > > { > X& operator+=( const X& ); > }; > > I wonder if addable is a good name. I thought that the classes are > named by the operator that is provided by the user and that they add > the ope

[boost] Re: GUI/GDI template library

2003-08-01 Thread David Abrahams
"Douglas Gregor" <[EMAIL PROTECTED]> writes: > 3) There is an alternative solution: Boost.Threads presents a single, > non-template interface to the user and hides all of the platform-specific > details using the pImpl idiom. The same approach can be applied here, and I > think we'll find that

RE: [boost] Re: GUI/GDI template library

2003-08-01 Thread Brock Peabody
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > On Behalf Of David Abrahams > Sent: Wednesday, July 30, 2003 6:31 PM > To: [EMAIL PROTECTED] > Subject: [boost] Re: GUI/GDI template library [...] > > I think so. See Boost.Python and Boost.Spirit for examples

RE: [boost] GUI/GDI template library

2003-08-01 Thread Brock Peabody
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of Douglas Gregor > Sent: Friday, August 01, 2003 12:40 AM > To: Boost mailing list > Subject: Re: [boost] GUI/GDI template library [..] > I believe that one bit that falls out of the above agrees 100% wi

[boost] StackTraces

2003-08-01 Thread Eyyub Volkan Çektimur
(sorry for the prev. message without subject)   Have anyone used StackTraces utility on borland 6.0. I'm tring to use it and also tring to understand. At last i could compile the project but;   * a deadlock occured, the program locked     then i changed a line in the code (stacktrace_win3

[boost] [date-time] date_parsing.hpp.pach

2003-08-01 Thread nagual
Hello, boost. :-} This is refactore and improved date_parsing.hpp -- nagual mailto:[EMAIL PROTECTED] date_parsing.hpp.patch Description: Binary data ___ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/

[boost] Re: Reversed operator helpers?

2003-08-01 Thread Daniel Frey
Daryle Walker wrote: On Thursday, July 31, 2003, at 9:58 AM, Daniel Frey wrote: Daryle Walker wrote: In we have helper classes that can generate "operator OP" from "operator OP=", where "OP" can be "+", "/", ">>", etc. What about types and algorithms where the non-assignment version is easie

[boost] Re: Reversed operator helpers?

2003-08-01 Thread Daryle Walker
On Thursday, July 31, 2003, at 9:58 AM, Daniel Frey wrote: Daryle Walker wrote: In we have helper classes that can generate "operator OP" from "operator OP=", where "OP" can be "+", "/", ">>", etc. What about types and algorithms where the non-assignment version is easier than the assignment