Valentin Bonnard summarised: [...] General comments: - no one here wants to discourage the use assertions Actually, that's not strictly true. I am not their...
673
Kevlin Henney
Kevlin.Henney@...
Sep 1, 1999 8:37 am
Greg Colvin wrote: [...] Anyway, I prefer the string to be an optional second argument: assertion (x ? t(3) : 3434==i+j, "must fobnicate before we tweak"); ...
674
Kevlin Henney
Kevlin.Henney@...
Sep 1, 1999 8:37 am
... [...] ... Then the string will take space in the program (I have read that it was a problem for big apps). This is mostly irrelevant folklore. But if space...
675
Moore, Paul
Paul.Moore@...
Sep 1, 1999 9:38 am
From: Beman Dawes [mailto:beman@...] ... It's not possible to completely eliminate macros, and still get __LINE__ and __FILE__, but is a reasonable...
676
Valentin Bonnard
Bonnard.V@...
Sep 1, 1999 11:05 am
... I have read this assertion (oops, sorry) in a book about C, so inline functions weren't a problem, written by someone from MS. Anyway, I think that it's...
677
Valentin Bonnard
Bonnard.V@...
Sep 1, 1999 11:17 am
... should be frobnicate, BTW ... Objects of type string and logic_error will be created for each assertion, even when ckecking is disabled. The string will: -...
678
Kevlin Henney
Kevlin.Henney@...
Sep 1, 1999 11:27 am
... we ... Objects of type string and logic_error will be created for each assertion, even when ckecking is disabled. [potentially expensive stuff deleted] ...
679
Valentin Bonnard
Bonnard.V@...
Sep 1, 1999 1:25 pm
... Technically this code is fine. But look at the problem from the user point of view: it means that he can only use boost' casts in functions with no or...
680
Beman Dawes
beman@...
Sep 1, 1999 12:34 pm
Looking at 7.3.1.1 [namespace.unnamed], it seems the following technique allows the use of assert() in a header without introducing an ODR violation. namespace...
... introducing ... In other words, the problem has been reduced from the template always being an ODR violation if there were NDEBUG differences between ...
683
Valentin Bonnard
Bonnard.V@...
Sep 1, 1999 4:07 pm
... That isn't clearly better: - original problem: if NDEBUG gets a different value in different TUes, than ODR-problem - new problem: even if NDEBUG gets the...
684
Beman Dawes
beman@...
Sep 1, 1999 4:10 pm
... error ... The unnamed namespace has the same effect as static. Static has been deprecated for this usage if I remember correctly. --Beman...
685
Valentin Bonnard
Bonnard.V@...
Sep 1, 1999 4:10 pm
... It's: - redundant: it's in a anonymous namespace, there is function template per TU - deprecated: static at namespace scope is deprecated - useless: having...
686
Kevlin Henney
Kevlin.Henney@...
Sep 1, 1999 4:14 pm
Valentin Bonnard wrote: [...] To me that's a terrible change. I can't call this ``better''. Until something better emerges, I urge you to keep the existing...
687
Greg Colvin
gcolvin@...
Sep 1, 1999 4:20 pm
From: Beman Dawes <beman@...> ... Perhaps. But doesn't that prejudge the policy question of whether to forbid uses of assert in Boost headers that could...
688
Beman Dawes
beman@...
Sep 1, 1999 4:22 pm
... I don't think we can keep the existing code either. I don't think we want to supply headers with even potential ODR violations in them. It really looks to...
689
Greg Colvin
gcolvin@...
Sep 1, 1999 4:28 pm
... As do I. ... I know we disagree here, so let me make the disagreement stark: There are no ODR problems with assert. It is possible that users can create...
690
Beman Dawes
beman@...
Sep 1, 1999 4:28 pm
... to ... use ... assert ... I know, I know. It is a rough tool but the only thing we have. But I really dislike the idea of ODR violations in Boost...
691
Kevlin Henney
Kevlin.Henney@...
Sep 1, 1999 5:31 pm
Greg Colvin wrote: [...] ... submitted ... new ... an ... I know we disagree here, so let me make the disagreement stark: There are no ODR problems with...
692
Reid Sweatman
reids@...
Sep 1, 1999 6:02 pm
... No, haven't looked at much third-party stuff other than Boost and SGI's STL. Any more, if it costs money, the outfits I work for won't buy it. And most of...
693
Beman Dawes
beman@...
Sep 1, 1999 6:22 pm
The web site has been updated: * In addition to the regular and beta sections on the Libraries page, there is now an "experimental" section. * The boost...
694
Nick Ambrose
nicka@...
Sep 1, 1999 6:41 pm
... The URL I have is : http://monet.uwaterloo.ca/blitz/ but it seems to be down currently. I do know what you mean about being viewed as a troublemaker. I...
695
Beman Dawes
beman@...
Sep 1, 1999 7:28 pm
... propose ... I tried this "nested namespace with namespace scope using directive" technique several times in the last two weeks, including in ...
696
Paul Baxter
paje@...
Sep 1, 1999 7:58 pm
Its moved to www.oonumerics.org/blitz/ [ Check out the excellent high quality links page at www.oonumerics.org/oon as well if you're looking for free...
697
scleary@...
Sep 1, 1999 9:19 pm
Here's a file containing what we have so far. I've tried to include all compatible ideas. Summary: // The attached file: // . Avoids all ODR violations // ....
698
scleary@...
Sep 1, 1999 9:32 pm
This time I actually included the file! It's been a long week... :) -Steve ... copied) ... message is not ... impossible without violating ODR) ... confusion ...
699
Reid Sweatman
reids@...
Sep 2, 1999 12:41 am
... True, which is why I originally asked if anyone had done or knew of a decent template implementation of an array class. I've seen the thing called "block"...
700
Reid Sweatman
reids@...
Sep 2, 1999 12:53 am
... I don't blame you. When I first found out how MFC manages to fake classes into the Windows messaging scheme, I was aghast. It basically violates every...
701
Reid Sweatman
reids@...
Sep 2, 1999 1:01 am
... Yeah, and that's what I use. Bummer. Wish they'd just fix the damn thing. ... Well, gaming is what I do, so it's directly relevant to me. However, the ...