Re: [boost] quantity.hpp uploaded into files section

2003-04-27 Thread Terje Slettebø
If one were to implement currency conversion, how might that be done, in general? Does one need to store the conversion rates between any two currencies (giving an N^2 size table), or might it be possible to convert any currency to some universal currency, and from that again to any other, and

Re: [boost] Re: is_convertible: rationale and wording

2003-04-27 Thread John Maddock
Actually, there is another advantage, which (I think) is at least as important as the ones you cite. Namely, it is possible to define a built in operator such that is_convertibleY,X returns false for class X{}; class Y : X {}; and ambiguous conversion cases that (as far as I can tell)

Re: [boost] Re: is_convertible: rationale and wording

2003-04-27 Thread John Maddock
I realize that I'm replying to a message that is now quite old. Hopefully what I have to say is still relevant. Apologies if not. Absolutely, there are a couple of procedural points I should make: 1) we are talking about a library only TR at present, core changes aren't allowed just yet. 2)

Re: [boost] [thread] Win32 mutex implementation

2003-04-27 Thread Bronek Kozicki
William E. Kempf wrote: Could this not have been implemented with a critical section and use TryEnterCriticalSection? Why was the mutex approach used for one and not the other? TryEnterCriticalSection is not portable. Specifically, it's not available in the Win9x line. Critical sections

Re: [boost] Quantity library: any interest?

2003-04-27 Thread Terje Slettebø
From: David Abrahams [EMAIL PROTECTED] These are my (only slightly informed) opinions. I've heard Walter Brown talk about angle in this context, which was a big influence. Terje Slettebø [EMAIL PROTECTED] writes: Regarding this angle dimension, should it be treated like the other

Re: [boost] Quantity library: any interest?

2003-04-27 Thread Terje Slettebø
From: [EMAIL PROTECTED] we use the int-based template approach for a couple of years now in our AGV controller software. We actually sometimes reach the stage that it works when succesfully compiled and linked. Since our control software is physics throughout (field of robotics), the type

[boost] Re: quantity.hpp uploaded into files section

2003-04-27 Thread Pavel Vozenilek
Terje Slettebø [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If one were to implement currency conversion, how might that be done, in general? Does one need to store the conversion rates between any two currencies (giving an N^2 size table), or might it be possible to convert any

Re: [boost] boost regex in 1.30.0

2003-04-27 Thread David Abrahams
John Maddock [EMAIL PROTECTED] writes: John, what are the correct names? I think I can patch your Jamfile for you. BBv2 is coming very soon, but this is so easy to do in BBv1 that it seems a shame to leave users hanging. The names are documented here:

[boost] Re: [filesystem] new functions proposals

2003-04-27 Thread Pavel Vozenilek
Trevor Taylor [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] So it sounds to me like the :blat is *not* part of the extension. It sounds like the NT file name is made up of three parts: name, extension and stream. In which case I think it is fine to have functions extension() and

[boost] Re: Re: is_convertible: rationale and wording

2003-04-27 Thread Mike Conley
John Maddock [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: The problem is that the question is A convertible to B has four answers: yes, no, ill-formed, and ambiguous :-( John. Obviously, I think there should be only two :) That is, it would be nice to have a test that tells me the

Re: [boost] Quantity library: any interest?

2003-04-27 Thread David Abrahams
Terje Slettebø [EMAIL PROTECTED] writes: From: David Abrahams [EMAIL PROTECTED] These are my (only slightly informed) opinions. I've heard Walter Brown talk about angle in this context, which was a big influence. Terje Slettebø [EMAIL PROTECTED] writes: Regarding this angle dimension,

Re: [boost] Re: Re: is_convertible: rationale and wording

2003-04-27 Thread David Abrahams
Mike Conley [EMAIL PROTECTED] writes: John Maddock [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: The problem is that the question is A convertible to B has four answers: yes, no, ill-formed, and ambiguous :-( John. Obviously, I think there should be only two :) That is, it would

[boost] Re: Re: Re: Re: is_convertible: rationale and wording

2003-04-27 Thread Mike Conley
David Abrahams [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: That completely scuttles the ODR, as far as I can tell. Naturally, you wouldn't want to use a built in is_convertible this way. Better to pass it as a template parameter directly, rather than wrapping it: and_is_constT,

[boost] Re: Re: Re: is_convertible: rationale and wording

2003-04-27 Thread Mike Conley
David Abrahams [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: The problem I was trying to point out with is_const_or_int_convertible was that if you want it to just work you really want some way of grabbing context at the interface to any metafunction that might need it, and passing it

Re: [boost] Re: Re: Re: Re: is_convertible: rationale and wording

2003-04-27 Thread David Abrahams
Mike Conley [EMAIL PROTECTED] writes: David Abrahams [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: That completely scuttles the ODR, as far as I can tell. Naturally, you wouldn't want to use a built in is_convertible this way. Better to pass it as a template parameter directly,

Re: [boost] Quantity library: any interest?

2003-04-27 Thread renej
From: [EMAIL PROTECTED] we use the int-based template approach for a couple of years now in our AGV controller software. We actually sometimes reach the stage that it works when succesfully compiled and linked. Since our control software is physics throughout (field of robotics), the type

[boost] PP: The Order Programming for CPP Programming

2003-04-27 Thread Vesa Karvonen
Hi, I have now uploaded a prototype of the Order programming language interpreter to the files-section. Here is a link to the Order-folder: http://groups.yahoo.com/group/boost/files/Order/ Both the Order language and the prototype interpreter implementation still have many many rough edges