I have a piece of sample code in which I have a vector of shared pointers (boost::shared_ptr<>). Can anyone tell me why I am unable to iterate using the STL...
870
Matthew D. Langston
langston@...
Nov 2, 1999 1:06 am
Hi John, The problem is due to the fact that there is no conversion from "shared_ptr<Base>" to "Base*". Why is this conversion trying to take place? To see...
871
jaakko.jarvi@...
Nov 4, 1999 12:12 pm
Hello, I'm thinking of submitting the Binder Library (BL) to Boost. ... 1: a tuple abstraction: Example: tuple<int, char, string> foo() { return make_tuple(1,...
872
Moore, Paul
Paul.Moore@...
Nov 4, 1999 3:45 pm
From: jaakko.jarvi@... [mailto:jaakko.jarvi@...] ... [...] ... It sounds interesting. I plan on having a look at it. Paul....
873
Dave Abrahams
abrahams@...
Nov 5, 1999 1:13 am
... Yes, please do! I especially like the way you've solved the binding problem. There's no problem with choosing names for 0-ary and 12-ary functions. -Dave...
874
Darin Adler
darin@...
Nov 5, 1999 1:14 pm
We should change the Boost implementation of implicit_cast to a simple implementation that does not attempt to disable any warnings. The current implementation...
875
Dave Abrahams
abrahams@...
Nov 5, 1999 1:33 pm
... I'm convinced. -Dave...
876
Beman Dawes
beman@...
Nov 5, 1999 1:46 pm
... copyright ... library. ... repository? Conceptually, it would be a nice addition. Hard to know the details; it isn't one of those libraries you can just...
877
Gavin Collings
gcollings@...
Nov 5, 1999 1:49 pm
... warning. [examples snipped] ... Indeed, I would go even further and make it consistent with the comment in the boost documentation, "Is this intended, or...
878
Gavin Collings
gcollings@...
Nov 5, 1999 2:39 pm
... Hold on a minute, let's take a step back. What is the purpose of implicit_cast? "Is this intended, or is it a coding error" seems to indicate that it is...
879
Moore, Paul
Paul.Moore@...
Nov 5, 1999 2:54 pm
From: Gavin Collings [mailto:gcollings@...] ... No, he's suggesting that it can be used to force an implicit-type cast where one would not...
880
Beman Dawes
beman@...
Nov 5, 1999 3:11 pm
... simple ... numeric ... implicit ... context ... I agree with the above, particularly now that we have a strong numeric_cast<>. But implicit_cast<> needs...
881
Gavin Collings
gcollings@...
Nov 5, 1999 3:19 pm
... No, he's suggesting that it can be used to force an implicit-type cast where one would not otherwise occur His example was (IIRC) template argument ...
882
jeetsukumaran@...
Nov 5, 1999 3:22 pm
Hi! I've written a C++ implementation of the Mersenne Twister PRNG, and I wish to submit it to the boost library. I believe the class conforms to all...
883
Valentin Bonnard
Bonnard.V@...
Nov 5, 1999 3:29 pm
... It's worse than a slicing problem: it's a reference binding in a return statement to an automatic variable, ie a dandling reference. ... I would say that...
884
Beman Dawes
beman@...
Nov 5, 1999 3:29 pm
... comment ... error". ... error, if ... implicit_cast? ... it is giving ... furthermore, he ... that case, ... it's a kind ... Yes, you are right about one...
885
Darin Adler
darin@...
Nov 5, 1999 3:33 pm
... I agree that some programmers may want a cast that does a numeric conversion without any runtime checking. I recommend that we don't add anything to ...
886
Darin Adler
darin@...
Nov 5, 1999 3:35 pm
... It seems that that this is a minor problem compared with issues 1 and 2. Reasons: - implicit_cast is not intended to be called without a template ...
887
Valentin Bonnard
Bonnard.V@...
Nov 5, 1999 3:38 pm
... Once again: we only accept *freely usable code*, no GPL nor LPGL nor _any kind_ of copylefted code. -- Valentin Bonnard...
888
Beman Dawes
beman@...
Nov 5, 1999 4:07 pm
... I would really like to have more RNG's for boost, so I will contact Jeet via private email to try to work out both technical and licensing issues. --Beman...
889
C. Green
postmast.root.admi.go...
Nov 5, 1999 4:18 pm
... [Darin's comments on implicit conversions in implicit_cast] ... [snip] ... I assume this must be for the first (two-typename template func), because the...
890
Valentin Bonnard
Bonnard.V@...
Nov 5, 1999 4:25 pm
... You can disallow all uses of implicit_cast w/o an explicit template arg by stoping argument deduction: template <typename T> struct the_same { typedef T...
891
Valentin Bonnard
Bonnard.V@...
Nov 5, 1999 4:32 pm
... Oups ! yes ! ... Yes ... Yes ... If implicit_cast cannot be used on references types, it just isn't a general purpose implicit cast anymore and shouldn't ...
892
Paul Baxter
paje@...
Nov 5, 1999 4:51 pm
Maybe also consider the following similar alternative for boost. http://www.users.dircon.co.uk/~bebox/rng.html (although I think LGPL issues arise here as...
893
jeetsukumaran@...
Nov 5, 1999 7:42 pm
I got your e-mail, but your ISP bounced my reply -- both to your original address an your @boost.org address, so I'm posting my reply here. Apologies to...
894
Valentin Bonnard
Bonnard.V@...
Nov 5, 1999 7:44 pm
... Certainly ... The artistic license doesn't cause as much problem as the BSD license, LGPL (or even worse, the GPL). The only problem I see is that it is...
895
C. Green
postmast.root.admi.go...
Nov 5, 1999 8:09 pm
... [snip] ... Both of our identical solutions probably crossed paths somewhere on the net, as we seem to have sent them almost at the same moment :-) ... I...
896
Valentin Bonnard
Bonnard.V@...
Nov 5, 1999 8:31 pm
... There are no problems with a discussion of Boost license policy in the Boost mailing list. ... This is correct. Any code derived from GPL code can only be ...
897
jeetsukumaran@...
Nov 5, 1999 8:46 pm
... functions to ... be ... I like this idea. Using templates to maintain orthogonal decomposition, with different uniform prng passed to the transformation ...
898
jeetsukumaran@...
Nov 6, 1999 5:41 pm
Ok people. Based on suggestions made by Beman Dawes, as well as others on this list, as well as looking around at some of the other PRNG libraries available on...