[boost] ublas bug(?): sparse_matrix and matrix_row

2003-01-29 Thread Julius Muschaweck
Hi, to me it looks like there may be a bug with sparse_matrix and matrix_row. I was building a large sparse matrix from some smaller ones. When I tried to assign a matrix_row of a sparse_matrix to another matrix_row of another sparse_matrix, nothing happened. When I mix sparse_matrix with

Re: [boost] Re: Re: Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread Peter Dimov
From: David Abrahams [EMAIL PROTECTED] Peter Dimov [EMAIL PROTECTED] wrote in message 004501c2c6f8$970c7400$1d00a8c0@pdimov2">news:004501c2c6f8$970c7400$1d00a8c0@pdimov2... From: David B. Held [EMAIL PROTECTED] [...] Nope, but I want my sink strongly exception safe; the pointer should

Re: [boost] Re: Re: Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread Peter Dimov
From: David B. Held [EMAIL PROTECTED] Peter Dimov [EMAIL PROTECTED] wrote in message 004501c2c6f8$970c7400$1d00a8c0@pdimov2">news:004501c2c6f8$970c7400$1d00a8c0@pdimov2... From: David B. Held [EMAIL PROTECTED] [...] Nope, but I want my sink strongly exception safe; the pointer should be

Re: [boost] Re: Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread Peter Dimov
From: David B. Held [EMAIL PROTECTED] Greg Colvin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... At 10:08 AM 1/28/2003, Andrei Alexandrescu wrote: [...] I think what Peter refers to is that C++ might change to make move semantics easier to implement. That

[boost] BGL: checking for internal properties

2003-01-29 Thread Vladimir Prus
Jeremy, suppose I got lazy and don't want my graph algorithm to be passed a graph which does not have internal edge_weight property. What's the best way to check? I can do get(edge_weight, g); but that causes compile error in instantination deeps. What I'd like is something like:

[boost] BGL: graph direction

2003-01-29 Thread Vladimir Prus
Jeremy, When declaring adjacency_list, one can specify whether graph is directed or not, using selectors directedS undirectedS and bidirectionalS No wonder I always try to type bidirectedS and get a compile error. Is there any reason for different naming? No sure which is

[boost] Formal Review Request, Fixed-Point Decimal Library

2003-01-29 Thread Bill Seymour
Now that I once again have the time to pay attention to what's going on in Boost, I'd like to request a formal review of the fixed-point decimal library in fixdecv2.zip in the Yahoo files section. I haven't made any changes since I uploaded that file last October. Thanks, --Bill Seymour

Re: [boost] Building boost ignores GCC_ROOT_DIRECTORY etc.

2003-01-29 Thread John Maddock
The documentation on the site indicates I can use GXX or GCC_ROOT_DIRECTORY to specify which g++ binary to run. However, these settings are ignored, and the g++ in my path is used instead. GCC_ROOT_DIRECTORY=/usr/local/gcc-cvs/ TOOLS=gcc ~/bin/bjam and other variants show this behaviour.

Re: [boost] Re: Re: is_base_and_derived question

2003-01-29 Thread John Maddock
Before changing the documentation please consider the following improved implemetation that overcomes ambiguity and access control issues of the current is_base_and_derived implemetation (I lately posted it to c.l.c++.m) That's really interesting, but I can't get to work with the compilers I

Re: [boost] Re: Deadline for the Standard Library TechnicalReport

2003-01-29 Thread David Abrahams
Gabriel Dos Reis [EMAIL PROTECTED] writes: David B. Held [EMAIL PROTECTED] writes: | Beman Dawes [EMAIL PROTECTED] wrote in message | [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | [...] | Anyone interested might want to read the actual proposal. See |

Re: [boost] Re: Re: Deadline for the Standard LibraryTechnicalReport

2003-01-29 Thread David Abrahams
Gabriel Dos Reis [EMAIL PROTECTED] writes: David Abrahams [EMAIL PROTECTED] writes: | David B. Held [EMAIL PROTECTED] writes: | | Peter Dimov [EMAIL PROTECTED] wrote in message | 000d01c2c6f3$85038c30$1d00a8c0@pdimov2">news:000d01c2c6f3$85038c30$1d00a8c0@pdimov2... | [...] | By the

Re: [boost] Re: Re: Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread David Abrahams
Peter Dimov [EMAIL PROTECTED] writes: From: David Abrahams [EMAIL PROTECTED] Peter Dimov [EMAIL PROTECTED] wrote in message 004501c2c6f8$970c7400$1d00a8c0@pdimov2">news:004501c2c6f8$970c7400$1d00a8c0@pdimov2... From: David B. Held [EMAIL PROTECTED] [...] Nope, but I want my sink

Re: [boost] Re: Re: is_base_and_derived question

2003-01-29 Thread David Abrahams
John Maddock [EMAIL PROTECTED] writes: I've always felt that is_base_and_derived is a funny name. is_base_ofB, D and is_derived_fromD, B both look pronounceable(sp?) to me: is B a base of D? is D derived from B? The LWG suggested (and I agreed with) a change to is_base. Wow, how did I

Re: [boost] Re: Re: is_base_and_derived question

2003-01-29 Thread Daniel Frey
John Maddock wrote: I've always felt that is_base_and_derived is a funny name. is_base_ofB, D and is_derived_fromD, B both look pronounceable(sp?) to me: is B a base of D? is D derived from B? While we're at it, is the final verdict that is_base_and_derivedvoid, X should be false?

Re: [boost] Re: Re: is_base_and_derived question

2003-01-29 Thread Douglas Gregor
On Wednesday 29 January 2003 09:42 am, Daniel Frey wrote: // given some is_base_and_derived B, D ::value template typename T struct is { template typename U struct derived_from { enum { value = is_base_and_derived U, T ::value }; template typename U struct base_of { enum {

Re: [boost] Building boost ignores GCC_ROOT_DIRECTORY etc.

2003-01-29 Thread David Abrahams
John Maddock [EMAIL PROTECTED] writes: The documentation on the site indicates I can use GXX or GCC_ROOT_DIRECTORY to specify which g++ binary to run. However, these settings are ignored, and the g++ in my path is used instead. GCC_ROOT_DIRECTORY=/usr/local/gcc-cvs/ TOOLS=gcc ~/bin/bjam

Re: [boost] Re: Re: Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread Peter Dimov
From: David Abrahams [EMAIL PROTECTED] Peter Dimov [EMAIL PROTECTED] writes: And I'm even less wrong if the sink is px.reset(new X); since basic guarantee here says nothing about px after the exception. The exception safety of this construct has no name, it's somewhere between basic

Re: [boost] [BGL] MutablePropertyGraph questions

2003-01-29 Thread Vladimir Prus
Jeremy Siek wrote: Hi Volodya, On Tue, 10 Dec 2002, Vladimir Prus wrote: ghost Looking at BGL's MutablePropertyGraph docs I can't understand ghost two things: ghost ghost ep is an object of type G::edge_property_type ghost ghost Is that really so? Why not graph_traitsG::edge_property_type?

Re: [boost] Errors in Boost.Graph's topological_sort

2003-01-29 Thread Jeremy Siek
Hi Christoph, The problem with your example is that you forgot to initialize the vertex_index property for each vertex. Perhaps you thought that the adjacency_list would do this for you. However, this is not the case when using VertexList=listS. I know this is confusing, but it is stated in the

Re: [boost] BGL: concept docs buglets

2003-01-29 Thread Jeremy Siek
On Wed, 29 Jan 2003, Vladimir Prus wrote: ghost ghost Does it mean that all MutablePropertyGraphConcept instances of docs should ghost be renamed to LvaluePropertyGraphConcept? ghost Yes, I think that is correct. Also, I just checked in a fix to LvaluePropertyGraphConcept in graph_concepts.hpp.

[boost] Re: Re: Re: Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread Edward Diener
Greg Colvin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... At 08:25 PM 1/28/2003, Edward Diener wrote: Beman Dawes [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... At 01:42 PM 1/28/2003, David B. Held wrote: Greg Colvin

Re: [boost] [build] intel-linux problems...

2003-01-29 Thread David Abrahams
Rene Rivera [EMAIL PROTECTED] writes: [2003-01-27] Ronald Garcia wrote: Howdy, I'm trying to use boost build with the intel c++ compiler under linux. My compiler is installed in /usr/local/intel, but boost build appears to be looking for it in /opt/intel. Is there a way to specify the

Re: [boost] Re: Re: Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread David Abrahams
Peter Dimov [EMAIL PROTECTED] writes: From: David Abrahams [EMAIL PROTECTED] Peter Dimov [EMAIL PROTECTED] writes: And I'm even less wrong if the sink is px.reset(new X); since basic guarantee here says nothing about px after the exception. The exception safety of this construct

Re: [boost] BGL: graph direction

2003-01-29 Thread Jeremy Siek
Hi Volodya, No reason in particular for the spelling. I'm sorry it is confusing, but it is a bit late to change this now. Cheers, Jeremy P.S. In LEDA bidirected means something different than what bidirectional means in the BGL. On Wed, 29 Jan 2003, Vladimir Prus wrote: ghost ghost Jeremy,

Re: [boost] BGL: checking for internal properties

2003-01-29 Thread Jeremy Siek
Hi Volodya, I do this kind of checking in the BGL algorithms. Look at the function choose_param in boost/graph/named_function_params.hpp Warning: the code is pretty ugly :( Regards, Jeremy On Wed, 29 Jan 2003, Vladimir Prus wrote: ghost ghost Jeremy, ghost ghost suppose I got lazy and don't

Re: [boost] [BGL] MutablePropertyGraph questions

2003-01-29 Thread Jeremy Siek
Hi Volodya, On Wed, 29 Jan 2003, Vladimir Prus wrote: ghost ghost Oh.. I only now realized how to use ReabablePropertyGraph concept: ghost ghostfunction_requires ReadablePropertyGraphConceptG, edge, edge_weight_t (); ghost ghost Are you suggesting that this become ghost ghost

[boost] Re: BGL: graph direction

2003-01-29 Thread Jason House
I'm not familiar with the details, but could there be a typedef or something like that in order to accept bidirectedS? Or maybe replacing the bidirectionalS with bidirectedS and making bidirectionalS typedef'd to bidirectedS? Jeremy Siek wrote: Hi Volodya, No reason in particular for the

[boost] BGL: external properties

2003-01-29 Thread Vladimir Prus
Well, external properties still confuse me. Assume I want to attach some data to vertices in adjacency_list. No problem: vector vertex alternative_s ; iterator_property_map vectorvertex::iterator, property_mapG, vertex_index_t alternative = ... The problem is that I have to pass

[boost] Re: BGL: graph direction

2003-01-29 Thread Vladimir Prus
Jeremy Siek wrote: Hi Volodya, No reason in particular for the spelling. I'm sorry it is confusing, but it is a bit late to change this now. Jason House wrote: I'm not familiar with the details, but could there be a typedef or something like that in order to accept bidirectedS? Or maybe

[boost] How to make Boost.Test work with function objects?

2003-01-29 Thread Hubert Holin
Somewhere in the E.U., le 29/01/2003 Bonjour I guess I am being denser than usual, but I just can't seem to find the solution to the following problem: given boost::unit_test_framework::test_suite * test = BOOST_TEST_SUITE(); if I have the following templatetypename T void

[boost] Re: is_base_and_derived question

2003-01-29 Thread Rani Sharoni
John Maddock [EMAIL PROTECTED] wrote in message 014601c2c79c$f53f7f00$8e3687d9@1016031671">news:014601c2c79c$f53f7f00$8e3687d9@1016031671... Before changing the documentation please consider the following improved implemetation that overcomes ambiguity and access control issues of the

Re: [boost] [BGL] MutablePropertyGraph questions

2003-01-29 Thread Vladimir Prus
Jeremy, On Wed, 29 Jan 2003, Vladimir Prus wrote: ghost ghost Oh.. I only now realized how to use ReabablePropertyGraph concept: ghost ghostfunction_requires ReadablePropertyGraphConceptG, edge, edge_weight_t (); ghost ghost Are you suggesting that this become ghost ghost

[boost] Re: boost.threads: Thread pool

2003-01-29 Thread Alisdair Meredith
William E. Kempf wrote: [Michel André] Another question i noted that in the current boost CVS the boost.thread only builds a dll version of the library and no static ones, in earlier release you only needed the dll when using tss? Is it supposed to be that way? Yes. It vastly

[boost] Re: Re: Deadline for the Standard Library TechnicalReport

2003-01-29 Thread David B. Held
Gabriel Dos Reis [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] More accurately, there are *two* notions being considered: 1) typedef template; 2) template aliasing -- the thingy Andrei is missing. Could you clue us in on the current consensus?

Re: [boost] Re: Re: is_base_and_derived question

2003-01-29 Thread Thomas Witt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Maddock wrote: | | The LWG suggested (and I agreed with) a change to is_base. To me this is a bad idea, from a usability point of view. I strongly object against making this change. The argument ordering is perfectly obvious in

[boost] Re: Re: Re: Re: Re: SmartPtr (Loki) - auto_ptr/move c'torissue

2003-01-29 Thread David B. Held
David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] I was half-joking. Imagine you used an auto_ptr in the implementation of SmartPtr. [...] Well, help me reason this out anyway, because this is a gray area for me. We would have to put the

Re: [boost] Re: Re: is_base_and_derived question

2003-01-29 Thread Terje Slettebø
From: John Maddock [EMAIL PROTECTED] Before changing the documentation please consider the following improved implemetation that overcomes ambiguity and access control issues of the current is_base_and_derived implemetation (I lately posted it to c.l.c++.m) That's really interesting, but

[boost] Re: Re: Re: Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread David B. Held
Peter Dimov [EMAIL PROTECTED] wrote in message 00aa01c2c791$7df10cd0$1d00a8c0@pdimov2">news:00aa01c2c791$7df10cd0$1d00a8c0@pdimov2... [...] To be honest, I don't know. The design is quite complicated, and I don't have the time to study it in-depth. I'm not sure how this interacts with

[boost] Usability of http://boost.sourceforge.net/regression-logs

2003-01-29 Thread David Abrahams
Hi, This is a minor complaint about the wonderful automatically generated page at http://boost.sourceforge.net/regression-logs/, and perhaps also which tables we're generating and how we're generating them. When I'm interested in finding out how a library is performing on a given platform, I

Re: [boost] Re: Re: Deadline for the Standard Library TechnicalReport

2003-01-29 Thread Gabriel Dos Reis
David B. Held [EMAIL PROTECTED] writes: | Gabriel Dos Reis [EMAIL PROTECTED] wrote in message | [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | [...] | More accurately, there are *two* notions being considered: | | 1) typedef template; | 2) template aliasing -- the thingy Andrei is

[boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread David B. Held
David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] Hmm, no. The contract would have to be that if StoragePolicy throws an exception, it frees the resource passed as its constructor argument. There's nothing wrong with a requirement like that

Re: [boost] Re: Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread David Abrahams
David B. Held [EMAIL PROTECTED] writes: David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] They meaning function-try-blocks? Yes. The rule I have stuck in my head from the last time I considered this was: all they give you is the ability

Re: [boost] shifted_ptr w/ lock mechanism

2003-01-29 Thread David Abrahams
Philippe A. Bouchard [EMAIL PROTECTED] writes: Lock mechanism was added to shifted_ptr: http://groups.yahoo.com/group/boost/files/shifted_ptr.zip Benchmarks are also updated. Still shifted_ptr is using less memory and twice faster for reconstruction time. Almost. Notes: - The first

Re: [boost] libs/config/configure as shipped in CVS is broken

2003-01-29 Thread David Abrahams
John Levon [EMAIL PROTECTED] writes: The generated script contains the lines : # add the -AA conformance option to CXXFLAGS for HP aCC only if test $CXX = 'aCC' CXXFLAGS=-AA $CXXFLAGS fi This fails under sh configure. Changing to : if test $CXX = 'aCC'; then CXXFLAGS=-AA

[boost] BOOST_PP_XX_INCCLUDE

2003-01-29 Thread Hugo Duncan
On Mon, 27 Jan 2003 12:42:14 -0800, Paul Mensonides [EMAIL PROTECTED] wrote: #define BOOST_PP_HEADERS \ (...), /* i.e. no path */ \ (iostream)(fstream)(vector)(string) \ (map)(cstdlib)(sstream) \ /**/ ??=include BOOST_PP_ANGLED_INCLUDE() effectively does this:

[boost] Review Request: shifted_ptr

2003-01-29 Thread Philippe A. Bouchard
Greeting, I would like to request a formal review for my library: shifted_ptr. It consists of a smart pointer optimizing dynamic memory allocations and deallocations on the heap, thus lower requirement on the memory map and faster execution. It is accessible at:

Re: [boost] BOOST_PP_XX_INCCLUDE

2003-01-29 Thread Paul Mensonides
- Original Message - From: Hugo Duncan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 12:23 PM Subject: [boost] BOOST_PP_XX_INCCLUDE On Mon, 27 Jan 2003 12:42:14 -0800, Paul Mensonides [EMAIL PROTECTED] wrote: #define BOOST_PP_HEADERS \ (...), /*

Re: [boost] shifted_ptr w/ lock mechanism

2003-01-29 Thread Peter Dimov
From: David Abrahams [EMAIL PROTECTED] Philippe A. Bouchard [EMAIL PROTECTED] writes: Lock mechanism was added to shifted_ptr: http://groups.yahoo.com/group/boost/files/shifted_ptr.zip Benchmarks are also updated. Still shifted_ptr is using less memory and twice faster for

Re: [boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread David Abrahams
David B. Held [EMAIL PROTECTED] writes: David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] Unfortunately, StoragePolicy doesn't know when other c'tors have failed. The only one who does is smart_ptr, which is why it seems I have to

[boost] Re: shifted_ptr w/ lock mechanism

2003-01-29 Thread Philippe A. Bouchard
David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Philippe A. Bouchard [EMAIL PROTECTED] writes: Lock mechanism was added to shifted_ptr: http://groups.yahoo.com/group/boost/files/shifted_ptr.zip Benchmarks are also updated. Still

Re: [boost] shifted_ptr w/ lock mechanism

2003-01-29 Thread David Abrahams
Peter Dimov [EMAIL PROTECTED] writes: From: David Abrahams [EMAIL PROTECTED] Philippe A. Bouchard [EMAIL PROTECTED] writes: Lock mechanism was added to shifted_ptr: http://groups.yahoo.com/group/boost/files/shifted_ptr.zip Benchmarks are also updated. Still shifted_ptr is using less

[boost] Re: shifted_ptr w/ lock mechanism

2003-01-29 Thread Philippe A. Bouchard
Peter Dimov [EMAIL PROTECTED] wrote in message 000901c2c7dc$e76195e0$1d00a8c0@pdimov2">news:000901c2c7dc$e76195e0$1d00a8c0@pdimov2... From: Peter Dimov [EMAIL PROTECTED] One easy way to estimate the impact of an optimized allocator is to #define BOOST_SP_USE_STD_ALLOCATOR, to make

Re: [boost] Re: shifted_ptr w/ lock mechanism

2003-01-29 Thread David Abrahams
Philippe A. Bouchard [EMAIL PROTECTED] writes: Have you tried a comparison against a shared_ptr using an optimized count allocator? Nobody has invested as much effort in optimizing shared_ptr as you are pouring into shifted_ptr, but an experiment I did years ago made a huge difference in the

[boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread David B. Held
David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] Then you've indeed got a problem. There were indications in some of Beman's earlier explorations that the orthogonal policy decomposition wasn't always a natural one. This might be another

[boost] Re: shifted_ptr w/ lock mechanism

2003-01-29 Thread David B. Held
Philippe A. Bouchard [EMAIL PROTECTED] wrote in message b19hhg$i2m$[EMAIL PROTECTED]">news:b19hhg$i2m$[EMAIL PROTECTED]... [...] list shifted_ptrT took0.0002951000 seconds to construct. list shifted_ptrT took7.1966276647 seconds to reconstruct 2000 times. list shifted_ptrT

Re: [boost] Re: shifted_ptr w/ lock mechanism

2003-01-29 Thread David Abrahams
Philippe A. Bouchard [EMAIL PROTECTED] writes: Peter Dimov [EMAIL PROTECTED] wrote in message 000901c2c7dc$e76195e0$1d00a8c0@pdimov2">news:000901c2c7dc$e76195e0$1d00a8c0@pdimov2... From: Peter Dimov [EMAIL PROTECTED] One easy way to estimate the impact of an optimized allocator is to

[boost] Re: shifted_ptr w/ lock mechanism

2003-01-29 Thread Pavel Vozenilek
David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Peter Dimov [EMAIL PROTECTED] writes: From: David Abrahams [EMAIL PROTECTED] Philippe A. Bouchard [EMAIL PROTECTED] writes: Lock mechanism was added to shifted_ptr:

Re: [boost] Review Request: shifted_ptr

2003-01-29 Thread Greg Colvin
I notice that a special operator new must be used to create objects pointed to by shifted_ptr. Is this really necessaty? It prevents shifted_ptr from just being an alternative implementation of shared_ptr. ___ Unsubscribe other changes:

[boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread Andrei Alexandrescu
David B. Held [EMAIL PROTECTED] wrote in message b19ic3$m48$[EMAIL PROTECTED]">news:b19ic3$m48$[EMAIL PROTECTED]... Indeed. My new suggested change involves breaking orthogonality in a way that I think even Beman suggested, if memory serves me correctly. Ideally, SmartPtr should orchestrate

Re: [boost] Re: Re: is_base_and_derived question

2003-01-29 Thread David Abrahams
Terje Slettebø [EMAIL PROTECTED] writes: From: Terje Slettebø [EMAIL PROTECTED] As Daveed notes in the posting Rani gives a link to in the clc++m posting, if D is not derived from B, it has to choose between C - C const - B for the first function, and C - D for the second function, which are

Re: [boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread David Abrahams
Andrei Alexandrescu [EMAIL PROTECTED] writes: David B. Held [EMAIL PROTECTED] wrote in message b19ic3$m48$[EMAIL PROTECTED]">news:b19ic3$m48$[EMAIL PROTECTED]... Indeed. My new suggested change involves breaking orthogonality in a way that I think even Beman suggested, if memory serves me

[boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread David B. Held
Andrei Alexandrescu [EMAIL PROTECTED] wrote in message b19mhu$9sm$[EMAIL PROTECTED]">news:b19mhu$9sm$[EMAIL PROTECTED]... [...] Ideally, SmartPtr should orchestrate the workings of the policies together while they are aloof of each other. That's the gold standard, of course. [...] So my

[boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread David B. Held
David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] Orthogonality itself never plays agin' ya. It's when you try to force orthogonality on things which actually have to cooperate closely that you get problems. I'm not sure we have that case

[boost] Previously GPL'd Code

2003-01-29 Thread Glenn G. Chappell
A licensing question for everyone: Is there any problem with submitting, for possible inclusion in Boost, a library that was previously released under the GNU GPL? The submission would, in its new incarnation, be covered by a license that meets the Boost criteria. It would be submitted by the

Re: [boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread David Abrahams
David B. Held [EMAIL PROTECTED] writes: David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] Orthogonality itself never plays agin' ya. It's when you try to force orthogonality on things which actually have to cooperate closely that you get

Re: [boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread David Abrahams
David B. Held [EMAIL PROTECTED] writes: I suppose we could do something like this: void scalar_storage::acquire(stored_type const p) { pointee_ = p; } template typename U void ref_counted::acquire(U const p) { } template typename U

[boost] Re: shifted_ptr w/ lock mechanism

2003-01-29 Thread Andrei Alexandrescu
David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Philippe A. Bouchard [EMAIL PROTECTED] writes: I believe there is not that much left to do besides optimizations. Have you tried a comparison against a shared_ptr using an optimized count

[boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread David B. Held
David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] It sure does if any of the bases or members of smart_ptr throws from its constructor. Just when I thought the problem was solved... [...] I dunno. Acquiring ownership at construction time

Re: [boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread David Abrahams
David B. Held [EMAIL PROTECTED] writes: David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] It sure does if any of the bases or members of smart_ptr throws from its constructor. Just when I thought the problem was solved... [...] I dunno.

Re: [boost] Re: BGL: graph direction

2003-01-29 Thread Jeremy Siek
Adding typedef bidirectionalS bidirectedS; would be fine by me. I just don't want to break current code or docs by removing bidirectionalS. Cheers, Jeremy On Wed, 29 Jan 2003, Jason House wrote: jhouse I'm not familiar with the details, but could there be a typedef or jhouse something like that

[boost] Re: BGL: external properties

2003-01-29 Thread Jeremy Siek
We currenly do not have a solution for this in the BGL (other than internal properties). I seem to remember LEDA having a solution for this, so you might want to look there for ideas. Cheers, Jeremy On Wed, 29 Jan 2003, Vladimir Prus wrote: ghost ghost Well, external properties still confuse

[boost] Re: shifted_ptr w/ lock mechanism

2003-01-29 Thread Philippe A. Bouchard
Andrei Alexandrescu [EMAIL PROTECTED] wrote in message b1a0uv$lju$[EMAIL PROTECTED]">news:b1a0uv$lju$[EMAIL PROTECTED]... [...] My understanding is that shifted_ptr mandates allocating *your* objects inside *its* doped memory area by using placement new. (Phillippe, please correct me if I'm

[boost] Re: shifted_ptr w/ lock mechanism

2003-01-29 Thread Philippe A. Bouchard
David B. Held [EMAIL PROTECTED] wrote in message b19io8$o05$[EMAIL PROTECTED]">news:b19io8$o05$[EMAIL PROTECTED]... [...] Looks like your lead is getting eroded by the day. ;) And that's just with a quick hack. You better be worried about a serious small object allocator. Not only that,

[boost] Re: Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread Andrei Alexandrescu
David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [snip] One problem I see is that the constructor uses a different syntax than any other function. Imho syntax uniformity is good, and lack thereof is not good. Other languages get away from this

Re: [boost] Re: Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread David Abrahams
Andrei Alexandrescu [EMAIL PROTECTED] writes: David Abrahams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [snip] Might help to know what you're responding to here, though I can try to guess... One problem I see is that the constructor uses a different

[boost] Re: SmartPtr (Loki) - auto_ptr/move c'tor issue

2003-01-29 Thread David B. Held
Andrei Alexandrescu [EMAIL PROTECTED] wrote in message b1aact$imm$[EMAIL PROTECTED]">news:b1aact$imm$[EMAIL PROTECTED]... [...] I suggest we just make an explicit function acquire() for the ownership policy and have all of its other member functions assume acquire() was called. Unfortunately,