[boost] Re: Re: Boost MPL problem

2003-03-23 Thread Jaap Suter
It could be an instantiation depth issue. Maybe the OP's code needs more of our loop unrolling technique to avoid deep instantiations. I think that can be controlled by #defining BOOST_MPL_UNROLLING_LIMIT to some number greater than 4 before mpl files are #included. Thanks, I already

[boost] bad_lexical_cast

2003-03-23 Thread Dave Gomboc
Yes. Since type_info objects can't be copied, one might instead store pointers or references to them. Pointers would be better because, for better or for worse (mostly for worse), standard exceptions support assignment as part of their interface. Why should boost exception classes behave

[boost] Re: MSVC++ 6.0 compiler errors with 1.30.0 (mostly lexical_cast.hpp)

2003-03-23 Thread Gennaro Prota
On Sat, 22 Mar 2003 20:11:23 +, Kevlin Henney [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Terje Slettebø [EMAIL PROTECTED] writes Regarding the other MSVC 6 warning given in the original report, Gennaro Prota has suggested using an explicit !=, rather than relying on the implicit

[boost] Re: MSVC++ 6.0 compiler errors with 1.30.0 (mostly lexical_cast.hpp)

2003-03-23 Thread Gennaro Prota
On Sat, 22 Mar 2003 09:38:49 -0500, David Abrahams [EMAIL PROTECTED] wrote: David Abrahams [EMAIL PROTECTED] writes: Damn, maybe I need to update more/error_handling.html Done. Just some notes: - Don't embed a std::string object or any other data member or base class whose copy constructor

Re: [boost] Re: Re: Boost MPL problem

2003-03-23 Thread David Abrahams
Jaap Suter [EMAIL PROTECTED] writes: It could be an instantiation depth issue. Maybe the OP's code needs more of our loop unrolling technique to avoid deep instantiations. I think that can be controlled by #defining BOOST_MPL_UNROLLING_LIMIT to some number greater than 4 before mpl files

Re: [boost] Re: MSVC++ 6.0 compiler errors with 1.30.0 (mostly lexical_cast.hpp)

2003-03-23 Thread David Abrahams
Gennaro Prota [EMAIL PROTECTED] writes: On Sat, 22 Mar 2003 09:38:49 -0500, David Abrahams [EMAIL PROTECTED] wrote: David Abrahams [EMAIL PROTECTED] writes: Damn, maybe I need to update more/error_handling.html Done. Just some notes: - Don't embed a std::string object or any other data

[boost] ASPN improvements!

2003-03-23 Thread David Abrahams
I don't know if anyone else noticed, but the performance, UI, and reliability of the ASPN archives seems to have undergone a radical improvement recently. It still mis-threads some messages, but otherwise it feels entirely usable. Gracious thanks to everyone at ActiveState for this overhaul! I

[boost] random and intel v7

2003-03-23 Thread Thorsten Ottosen
Hi, random and intels compiler v7 does not work together. Does anyone know what it would take to make it work? regards -Thorsten ___ Unsubscribe other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

[boost] Re: MSVC++ 6.0 compiler errors with 1.30.0 (mostly lexical_cast.hpp)

2003-03-23 Thread Gennaro Prota
On Sun, 23 Mar 2003 08:11:02 -0500, David Abrahams [EMAIL PROTECTED] wrote: Gennaro Prota [EMAIL PROTECTED] writes: - Don't embed a std::string object or any other data member or base class whose copy constructor could throw an exception. That could lead to termination during stack unwinding.

Re: [boost] random and intel v7

2003-03-23 Thread David Abrahams
Thorsten Ottosen [EMAIL PROTECTED] writes: Hi, random and intels compiler v7 does not work together. Does anyone know what it would take to make it work? An active maintainer for the Boost.Random library ;-) -- Dave Abrahams Boost Consulting www.boost-consulting.com

[boost] Re: random and intel v7

2003-03-23 Thread Thorsten Ottosen
random and intels compiler v7 does not work together. Does anyone know what it would take to make it work? An active maintainer for the Boost.Random library ;-) I was more thinking about what compiler features that are prohibiting the intel compiler from working with the library. Since

[boost] boost::any feature request

2003-03-23 Thread Maxim Egorushkin
Title: I think it would be great to make boost::any's memory allocation strategy for value holder customizable. It would allow to use not only global new operator, but any other special fast allocators like, for example, Loki::SmallObject. The changes are minor and would not break

[boost] Re: Re: Re: Boost MPL problem

2003-03-23 Thread Jaap Suter
Jaap, I was just looking over the EMPL Wiki page (which continues to be a great thing), and noticed that item 5.2 is not really a good example of MPL style. The original intention was to focus on the default-template-parameter technique, and keep the rest simple. The 'operate-on-types-only'

Re: [boost] Re: Re: Re: Boost MPL problem

2003-03-23 Thread David Abrahams
Jaap Suter [EMAIL PROTECTED] writes: Jaap, I was just looking over the EMPL Wiki page (which continues to be a great thing), and noticed that item 5.2 is not really a good example of MPL style. The original intention was to focus on the default-template-parameter technique, and keep the

[boost] More EMPL Wiki nits (was: Boost MPL problem)

2003-03-23 Thread David Abrahams
A. int_c et al are now int_ et al. B. In item 5.3 you should probably suggest: template class N struct square : integral_c typename N::value_type, N::value * N::value {}; and later, template long N struct square_c : squarelong_N {}; Not only

Re: [boost] Re: random and intel v7

2003-03-23 Thread David Abrahams
Thorsten Ottosen [EMAIL PROTECTED] writes: random and intels compiler v7 does not work together. Does anyone know what it would take to make it work? An active maintainer for the Boost.Random library ;-) I was more thinking about what compiler features that are prohibiting the intel

Re: [boost] Re: MSVC++ 6.0 compiler errors with 1.30.0 (mostly lexical_cast.hpp)

2003-03-23 Thread David Abrahams
Gennaro Prota [EMAIL PROTECTED] writes: On Sun, 23 Mar 2003 17:17:03 +0100, Gennaro Prota [EMAIL PROTECTED] wrote: the standard defines 'stack unwinding' as (15.2/3) The process of calling destructors for automatic objects constructed on the path from a try block to a throw-expression

[boost] Re: Problem with KAI C++ and boost::type_traits

2003-03-23 Thread Daniel Frey
David Abrahams wrote: Daniel Frey [EMAIL PROTECTED] writes: Sounds reasonable. Which makes me wonder if we shouldn't change the naming of branches a bit: We should have a branch for the development of new versions (1.30.x), let's call it DEVELOP_1_30_x. On this branch, we can now add several

Re: [boost] Re: Problem with KAI C++ and boost::type_traits

2003-03-23 Thread David Abrahams
Daniel Frey [EMAIL PROTECTED] writes: David Abrahams wrote: Daniel Frey [EMAIL PROTECTED] writes: Sounds reasonable. Which makes me wonder if we shouldn't change the naming of branches a bit: We should have a branch for the development of new versions (1.30.x), let's call it DEVELOP_1_30_x.

[boost] Re: More EMPL Wiki nits (was: Boost MPL problem)

2003-03-23 Thread Jaap Suter
A. int_c et al are now int_ et al. From previous post: The quality of the Effective MPL (especially after the new MPL changes) is not very good anyway. I would like to make a major overhaul, testing all code examples, changing the code layout (moving it to docbook perhaps), and making it 1.30.0

[boost] Re: Re: Re: Re: Boost MPL problem

2003-03-23 Thread Jaap Suter
I've done it somewhat differently in the new code. Eh, whoops; your template invokes num_bits_set_impl, which isn't defined. Also, next is spelled netxt. I also think you may have a problem with eager evaluation or one too many ::type s. I think you should test these. Woops. I just woke

Re: [boost] Re: Re: Re: Re: Boost MPL problem

2003-03-23 Thread David Abrahams
Jaap Suter [EMAIL PROTECTED] writes: One could implement a set that does not 'duplicate' values, but the following is harder because insertion order matters: typedef mpl::set float, int, bool set_0; typedef mpl::set bool, int, float, set_1; mpl::is_equal set_0, set_1 ::type

Re: [boost] Re: Problem with KAI C++ and boost::type_traits

2003-03-23 Thread David Abrahams
David Abrahams [EMAIL PROTECTED] writes: signifies that the tag acts differently, but rc1, rc2 et al are part of the version number. The only reason to use the underscores at all is that version numbers will eventually become ambiguous otherwise. I'm even inclined to do as other projects do

Re: [boost] 1.30.0 Random fails to compile on MSVC 6

2003-03-23 Thread David Abrahams
Lapshin, Kirill [EMAIL PROTECTED] writes: Hi All, I posted this question on boost.users list but did not get any response. My first attempt to switch my project from boost 1.29 to 1.30 failed miserably due to compilation errors in random library. Simple #include

Re: [boost] Re: Re: Re: Re: Boost MPL problem

2003-03-23 Thread David Abrahams
David Abrahams [EMAIL PROTECTED] writes: And set equality can be tested in O(N) by iterating the first sequence of nodes and asking whether each one's ::type is a member of the other one. Of course, that only tests for a subset relation. You need to do that twice to test a = b and b = a,

Re: [boost] A generic tree manipulation library

2003-03-23 Thread Darren Cook
I'm very interested in having tree container concepts in Boost. The tree_node_map class provides an implementation to a basic tree node of variable branching size. The implementation here uses the std::map to implement the children, but this could equally be a std::list, std::vector or any

[boost] Lock Classes: FINAL POST

2003-03-23 Thread Kevin Atkinson
This is my final repost of my Lock Classes. If I do not get any constructive feedback this time I am going to give up. These classes have the following features: 1) The ability to acquire a lock and release it when the object goes out of scope effectively implementing the Monitor

[boost] Lock Classes: FINAL POST (fixed attch)

2003-03-23 Thread Kevin Atkinson
[The attachment got messed up in the last post. Hopefully, it will be OK this time] This is my final repost of my Lock Classes. If I do not get any constructive feedback this time I am going to give up. These classes have the following features: 1) The ability to acquire a lock and release

[boost] Re: bad_lexical_cast

2003-03-23 Thread Dave Gomboc
Since you advocate elsewhere that exception classes be derived from std::exception, the answer is because otherwise LSP would be violated. You can't access the derived class' assignment operator through a pointer/reference to a polymorphic base, so that point is moot. Well, you're the

[boost] support for lookbehind assertions

2003-03-23 Thread Michael Johnson
Does anybody know if regex++ has support for lookbehind assertions, or if there is a way of achieving the same result with other expressions. Example lookbehind assertion: (?!\\), - match a [,] only when it is not preceeded by a [\] character ___

[boost] [build system] Documentation error for Variant Descriptions

2003-03-23 Thread Michael Stevens
Firstly my thanks to everyone who worked so hard on boost 1_30_0. Particularly all the that regression testing that went on. On to the next release... One quick fix for the documentation for Variant descriptions used in the build system The syntax for defining parents (see features.jam) is

Re: [boost] boost::any feature request

2003-03-23 Thread Vladimir Prus
Hi Maxim, I think it would be great to make boost::any's memory allocation strategy for value holder customizable. It would allow to use not only global new operator, but any other special fast allocators like, for example, Loki::SmallObject. The changes are minor and would not break

[boost] Re: boost::any feature request

2003-03-23 Thread Alexander Nasonov
Maxim Egorushkin wrote: I think it would be great to make boost::any's memory allocation strategy for value holder customizable. It would allow to use not only global new operator, but any other special fast allocators like, for example, Loki::SmallObject. I can add it to dynamic_any. All