Re: [boost] Re: resource manager naming

2003-02-27 Thread Joel de Guzman
Terje Slettebø wrote: >> From: "Joel de Guzman" <[EMAIL PROTECTED]> > >> Dave Gomboc wrote: > So then reverse resource_manager and get managed_resource<>, or > just managed<>. Why not just resource<>? Management is implied anyway; that's the reason for the existence of the cl

Re: [boost] Re: resource manager naming

2003-02-27 Thread Terje Slettebø
>From: "Joel de Guzman" <[EMAIL PROTECTED]> > Dave Gomboc wrote: > >>> So then reverse resource_manager and get managed_resource<>, or just > >>> managed<>. > >> > >> Why not just resource<>? Management is implied anyway; that's the > >> reason for the existence of the class. > > > > *laugh* I wa

Re: [boost] Re: resource manager naming

2003-02-27 Thread Joel de Guzman
Dave Gomboc wrote: >>> So then reverse resource_manager and get managed_resource<>, or just >>> managed<>. >> >> Why not just resource<>? Management is implied anyway; that's the >> reason for the existence of the class. > > *laugh* I was thinking exactly the opposite. To me, the resource > its

[boost] Re: resource manager naming

2003-02-27 Thread Dave Gomboc
> > So then reverse resource_manager and get managed_resource<>, or just > > managed<>. > > Why not just resource<>? Management is implied anyway; that's the > reason for the existence of the class. *laugh* I was thinking exactly the opposite. To me, the resource itself is clear from the templa

Re: [boost] Re: Is there any Interest in a Fixed Point Library?

2003-02-27 Thread Kevin Atkinson
On Thu, 27 Feb 2003, Jason House wrote: > Kevin Atkinson wrote: > > > > On Thu, 27 Feb 2003, Jason House wrote: > > > One thought... It looks like the template parameter should be an integer > > > type (of course, right?)... I think that there is some way to cause a > > > non integer type to ge

[boost] Re: [optional] Polymorphism

2003-02-27 Thread David B. Held
"Fernando Cacciola" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [...] > You would like to be dealing with: > > optional* and optional* Yes, exactly. > but you can do this as well, so I figure that what you really > need is a 'dynamic-type preserving' conversion between these > o

[boost] Re: [optional] Polymorphism

2003-02-27 Thread Fernando Cacciola
"Philippe A. Bouchard" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > > "Philippe A. Bouchard" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > [...] > > > int main() > > { > > optional b; > > optional c; > > > > foo(b); > > //foo(c); > > } > >

RE: [boost] Is there any Interest in a Fixed Point Library?

2003-02-27 Thread Kevin Atkinson
On Thu, 27 Feb 2003, Paul A. Bristow wrote: > Yes - this looks potentially rather useful for some tasks, especially embedded > systems. > Why on earth didn't the language include fixed point and/or fractional types? Well in order for fractions to be really useful, that is to support exact values

Re: [boost] Re: resource manager naming

2003-02-27 Thread Joel de Guzman
Brian Gray wrote: > On Thursday, February 27, 2003, at 09:15 AM, David Abrahams wrote: >> "Sam Partington" <[EMAIL PROTECTED]> writes: >> >>> Could it not just be called shared. After all it is merely a more >>> general >>> term of shared_ptr. And the type of the resource kind of makes it >>> im

Re: [boost] Re: Borland C++ Builder patch 4 released

2003-02-27 Thread Samuel Krempp
On Thu, 2003-02-27 at 13:58, Alisdair Meredith wrote: > [Could make config testing interesting if 0x0563 has fixes not present > in the Kylix release, 0x0570] indeed. I guess it's the first time, thanks to Borland's 2 branches (kylix / Borland C++ Builder) using intertwined version numbers, that o

[boost] boost::any_cast<>

2003-02-27 Thread Noel Yap
I'm using boost::any until boost::variant is out. My question is about the syntax of boost::any_cast. Why does the follow not work: return *boost::any_cast< double* >( &_attributeMap[ "securitized-balance" ] ) ; while the following does: return *boost::any_cast< double >( &_attribute

[boost] Re: Glitch with mpl::placeholder(s)?

2003-02-27 Thread Andreas Huber
"David Abrahams" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Andreas, > > Aleksey just did a big round of renaming before the first official > release of MPL (including changes like int_c -> int_, and placeholder > -> placeholders); I believe that placeholder.hpp is obsolete a

[boost] Stats - smallish points

2003-02-27 Thread Matt Hurd
I see in the Wiki a couple of comments about variance/std dev with n and n-1 being referred to at the denominator. Just to clear it up: when it is a complete population the denominator should be n. when it is a random sample it is n-1. sample variance = sum(Xi - mean(X))^2/(n-1) or more usefull

[boost] Re: resource manager naming

2003-02-27 Thread Jason House
managed_copy? How about an abbreviated name? Like rsrc_mgr? Although, I don't like that abbreviation for resource... ___ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Re: [boost] Glitch with mpl::placeholder(s)?

2003-02-27 Thread David Abrahams
Hi Andreas, Aleksey just did a big round of renaming before the first official release of MPL (including changes like int_c -> int_, and placeholder -> placeholders); I believe that placeholder.hpp is obsolete and should have been removed from CVS. In this case we could keep it for backwards-comp

[boost] Re: Is there any Interest in a Fixed Point Library?

2003-02-27 Thread Jason House
Kevin Atkinson wrote: > > On Thu, 27 Feb 2003, Jason House wrote: > > One thought... It looks like the template parameter should be an integer > > type (of course, right?)... I think that there is some way to cause a > > non integer type to generate a compiler error. Of course, considering >

[boost] Glitch with mpl::placeholder(s)?

2003-02-27 Thread Andreas Huber
Hi Aleksey I have got mpl out of CVS 5 minutes ago. Code that previously compiled fine now shows the following error: d:\Data\boostCvsRoot\boost\boost\mpl\aux_\include_preprocessed.hpp(27) : fatal error C1083: Cannot open include file: 'boost/mpl/aux_/preprocessed/msvc70/placeholder.hpp': No such

RE: [boost] Re: resource manager naming

2003-02-27 Thread Matt Hurd
> -Original Message- > Behalf Of Alisdair Meredith > Subject: [boost] Re: resource manager naming > > Larry Evans wrote: > > > Would the GOF name, proxy, be too non-specific? Policy names > might provide > > the specifics (whether it's a pointer or a resource). > > Proxy, if anything,

[boost] Formal Review I/O Library Extended

2003-02-27 Thread Thomas Witt
Hi, To make up for the schedule problems the formal review for I/O is extended until March 11th. So there is no need to hurry for those willing finish their variant review first. As said before the variant review is still open until March 2nd. Thomas Boost Review Wizard -- Dipl.-Ing. Thoma

RE: [boost] Is there any Interest in a Fixed Point Library?

2003-02-27 Thread Paul A. Bristow
Yes - this looks potentially rather useful for some tasks, especially embedded systems. Why on earth didn't the language include fixed point and/or fractional types? As you observe, the increased accuracy compared to float (just a little too small for some measurements like weights) but with half

Re: [boost] newsgroup

2003-02-27 Thread Blue, Reginald V
"David Abrahams" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Noel Yap <[EMAIL PROTECTED]> writes: > > > The news group advertised on the site, > > news.gmane.org/gmane.comp.lib.boost.devel, gives no response. Has it > > moved? > > Works for me. Your post appears there. >

Re: [boost] Re: resource manager naming

2003-02-27 Thread Brian Gray
On Thursday, February 27, 2003, at 09:15 AM, David Abrahams wrote: "Sam Partington" <[EMAIL PROTECTED]> writes: Could it not just be called shared. After all it is merely a more general term of shared_ptr. And the type of the resource kind of makes it implicit. std::auto_ptr is a non-shared re

Re: [boost] Re: resource manager naming

2003-02-27 Thread David Abrahams
"Sam Partington" <[EMAIL PROTECTED]> writes: > Could it not just be called shared. After all it is merely a more general > term of shared_ptr. And the type of the resource kind of makes it implicit. std::auto_ptr is a non-shared resource manager. -- Dave Abrahams Boost Consulting www.boost-co

Re: [boost] Re: resource manager naming

2003-02-27 Thread Sam Partington
Could it not just be called shared. After all it is merely a more general term of shared_ptr. And the type of the resource kind of makes it implicit. e.g. shared is a shared file. crystal. Though this doesn't fit at all with non sharing policies. Sam Alisdair Meredith wrote: > Larry Evans w

Re: [boost] newsgroup

2003-02-27 Thread David Abrahams
Noel Yap <[EMAIL PROTECTED]> writes: > The news group advertised on the site, > news.gmane.org/gmane.comp.lib.boost.devel, gives no response. Has it > moved? Works for me. Your post appears there. news://news.gmane.org/gmane.comp.lib.boost.devel -- Dave Abrahams Boost Consulting www.boost-co

[boost] Re: newsgroup

2003-02-27 Thread Alisdair Meredith
Noel Yap wrote: > The news group advertised on the site, > news.gmane.org/gmane.comp.lib.boost.devel, gives no response. Has it > moved? Not if you get this reply, I do all my boosting through Gmane -- AlisdairM ___ Unsubscribe & other changes: htt

Re: [boost] Re: resource manager naming

2003-02-27 Thread David Abrahams
Larry Evans <[EMAIL PROTECTED]> writes: > Alisdair Meredith wrote: >> Phil Nash wrote: >> > [snip] >> Final disorganised point When you think 'pointer' without a >> context, what concept do you associate first? Resource-manager? Or >> dereferencable? The very name suggests the latter to me!

[boost] Re: Broken links report

2003-02-27 Thread Hubert Holin
Somewhere in the E.U., le 27/02/2003 Bonjour In article <[EMAIL PROTECTED]>, "Gennadiy Rozental" <[EMAIL PROTECTED]> wrote: > Hi, > > I played today with some links validation software and set it upon > www.boost.org > > Here the results for those who is interested. > > http://groups.ya

Re: [boost] Re: Is there any Interest in a Fixed Point Library?

2003-02-27 Thread Kevin Atkinson
On Thu, 27 Feb 2003, Jason House wrote: > Kevin Atkinson wrote: > > > > Is there any interest in a fixed point math library. > > Well, I'm interested in a fixed point library :) > Especially if it can be used as a template argument in place of a > floating point type. Thanks. > > Using tem

[boost] newsgroup

2003-02-27 Thread Noel Yap
The news group advertised on the site, news.gmane.org/gmane.comp.lib.boost.devel, gives no response. Has it moved? Thanks, Noel -- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. _

[boost] Re: resource manager naming

2003-02-27 Thread Alisdair Meredith
Larry Evans wrote: > Would the GOF name, proxy, be too non-specific? Policy names might provide > the specifics (whether it's a pointer or a resource). Proxy, if anything, sends the wrong message to me. The name suggests 'reference', rather then 'owner' 'bookkeeper' is the best I can come up w

Re: [boost] Re: resource manager naming

2003-02-27 Thread Larry Evans
Alisdair Meredith wrote: Phil Nash wrote: [snip] Final disorganised point When you think 'pointer' without a context, what concept do you associate first? Resource-manager? Or dereferencable? The very name suggests the latter to me! [Which could be why I have such a hard time with pointers-t

[boost] Re: Is there any Interest in a Fixed Point Library?

2003-02-27 Thread Jason House
Kevin Atkinson wrote: > > Is there any interest in a fixed point math library. Well, I'm interested in a fixed point library :) Especially if it can be used as a template argument in place of a floating point type. > Using templates the > compiler can keep track of the radix point for you

[boost] Re: [optional] Polymorphism

2003-02-27 Thread Philippe A. Bouchard
"Philippe A. Bouchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [...] > int main() > { > optional b; > optional c; > > foo(b); > //foo(c); > } BTW implicit cast to reference types are not implicit under GCC, they have to be called explicitly. Template casts d

[boost] Re: resource manager naming

2003-02-27 Thread Alisdair Meredith
Phil Nash wrote: > The fact is that most (I would hope) of those that are subscribed to the > list know what a smart pointer is. Many would also make the extra connection > between smart POINTERs and general RESOURCE management. Not sure even here we agree 100%. What is the precise scope of the

[boost] Re: resource manager naming

2003-02-27 Thread Alisdair Meredith
Dave Gomboc wrote: > But those that don't would look for "resource_manager" or "resource_mgr" > (and might even find "res_mgr"). The smart_ prefix is quite useless in > this context, there isn't an old resource manager that is being replaced. The whole resource management idea is quite fraught.

Re: [boost] [Boost.python] Help. string heap error!

2003-02-27 Thread David Abrahams
Kim Chang Han <[EMAIL PROTECTED]> writes: > Here is my simple test code modified from embedding.cpp test code(by > Dirk Gerrits). > > I successfully compiled, but my excutable raise heap error assertion > when the time freeing the string result of the function py.hello(). > > Can I prevent this er

[boost] Re: Borland C++ Builder patch 4 released

2003-02-27 Thread Alisdair Meredith
Beman Dawes wrote: > But I really don't want to change compilers in the midst of a release > runup. So I've stuck a note on my calendar for March 12th to install the > patch. > If anyone thinks this is a problem, let me know. Assuming a new version number for __BORLANDC__ it might throw out some

[boost] Stats class

2003-02-27 Thread Michael Meyer
Statistics functionality would be extremely interesting. The idea would be to duplicate the basic notions of the mathematical theory as C++ classes. The conceptual hyrarchy (bottom to top) is as follows: 1. Probability distribution (implementation: random number generator). 2. Random Object (Ran

[boost] Re: Borland C++ Builder patch 4 released

2003-02-27 Thread Russell Hind
FYI I've submitted it as QC#3629 Russell Paul Mensonides wrote: Russell Hind wrote: Sorry to say that the output is now incorrect. A2 instead of A 2. Checking the preprocessor output for this gives /* Unit1.cpp 9: */int main() { /* Unit1.cpp 10: */std::cout << "A 2" << &std::endl; /* Unit1.cpp

Re: [boost] possible addition to operators library

2003-02-27 Thread Sam Partington
Daniel Frey wrote: >> >> Daniel Frey wrote: > No problem. IIRC it was Peter Dimov who came up with the safe-bool > idiom first. At least I saw it first from him. Another way which > works but results in worse error messages is this: > > template > struct bool_testable : B > { > private: > operat

Re: [boost] Re: Borland C++ Builder patch 4 released

2003-02-27 Thread Paul Mensonides
Russell Hind wrote: > Sorry to say that the output is now incorrect. A2 instead of A 2. > Checking the preprocessor output for this gives > > /* Unit1.cpp 9: */int main() { > /* Unit1.cpp 10: */std::cout << "A 2" << &std::endl; > /* Unit1.cpp 11: */return 0; > > which is again correct. This is s

[boost] Re: Borland C++ Builder patch 4 released

2003-02-27 Thread Russell Hind
Sorry to say that the output is now incorrect. A2 instead of A 2. Checking the preprocessor output for this gives /* Unit1.cpp 9: */int main() { /* Unit1.cpp 10: */std::cout << "A 2" << &std::endl; /* Unit1.cpp 11: */return 0; which is again correct. This is strange since I thought that bcc32 w

[boost] Re: Thread-Local Storage (TLS)andtemplates

2003-02-27 Thread Alexander Terekhov
Edward Diener wrote: [...] > DllMain's DLL_THREAD_DETACH is a better design, I think you must realize > that you are dealing with a company with millions and millions of developers Yeah. "zillions of innocent programmers". regards, alexander. < former MSDN-"universal su

Re: [boost] Re: Borland C++ Builder patch 4 released

2003-02-27 Thread Paul Mensonides
Russell Hind wrote: >> #define A() 1 >> #define B(m) m 2 >> >> B(A) >> > > I've run the above through the preprocessor and heres the output > > /* Unit1.cpp 1: */ > /* Unit1.cpp 2: */ > /* Unit1.cpp 3: */ > /* Unit1.cpp 4: */A 2 > > Tested using the preprocess option with BCB6Pro Update 4. This l

[boost] Re: Borland C++ Builder patch 4 released

2003-02-27 Thread Russell Hind
Paul Mensonides wrote: Beman Dawes wrote: #define A() 1 #define B(m) m 2 B(A) I've run the above through the preprocessor and heres the output /* Unit1.cpp 1: */ /* Unit1.cpp 2: */ /* Unit1.cpp 3: */ /* Unit1.cpp 4: */A 2 Tested using the preprocess option with BCB6Pro Update 4. This looks lik

Re: [boost] Re: Formal Review for Boost I/O Library

2003-02-27 Thread Thomas Witt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I am responsible for the overlap. This is due to an email getting lost. The I/O review may be extended to make up for the overlap. I will make a posting as soon as a solution is found. In the meantime we will have two reviews running in parallel. T

Re: [boost] Re: Borland C++ Builder patch 4 released

2003-02-27 Thread Paul Mensonides
Beman Dawes wrote: > Pavel, > > >Official patch 4 was released just now: > > > >http://bdn.borland.com/article/0,1410,29793,00.html > > > > > >Among bugs fixed is: > >- The bcc compiler now compiles code containing a const member > function. > > Hum... Interesting... Thanks for letting me kn