Valentin Bonnard summarised: [...] General comments: - no one here wants to discourage the use assertions Actually, that's not strictly true. I am not their...
Kevlin Henney
Kevlin.Henney@...
Sep 1, 1999 8:37 am
673
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"); ...
Kevlin Henney
Kevlin.Henney@...
Sep 1, 1999 8:37 am
674
... [...] ... 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...
Kevlin Henney
Kevlin.Henney@...
Sep 1, 1999 8:37 am
675
From: Beman Dawes [mailto:beman@...] ... It's not possible to completely eliminate macros, and still get __LINE__ and __FILE__, but is a reasonable...
Moore, Paul
Paul.Moore@...
Sep 1, 1999 9:38 am
676
... 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...
Valentin Bonnard
Bonnard.V@...
Sep 1, 1999 11:05 am
677
... 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: -...
Valentin Bonnard
Bonnard.V@...
Sep 1, 1999 11:17 am
678
... we ... Objects of type string and logic_error will be created for each assertion, even when ckecking is disabled. [potentially expensive stuff deleted] ...
Kevlin Henney
Kevlin.Henney@...
Sep 1, 1999 11:27 am
679
... 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...
Valentin Bonnard
Bonnard.V@...
Sep 1, 1999 1:25 pm
680
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 ...
Beman Dawes
beman@...
Sep 1, 1999 3:27 pm
683
... 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...
Valentin Bonnard
Bonnard.V@...
Sep 1, 1999 4:07 pm
684
... error ... The unnamed namespace has the same effect as static. Static has been deprecated for this usage if I remember correctly. --Beman...
Beman Dawes
beman@...
Sep 1, 1999 4:10 pm
685
... It's: - redundant: it's in a anonymous namespace, there is function template per TU - deprecated: static at namespace scope is deprecated - useless: having...
Valentin Bonnard
Bonnard.V@...
Sep 1, 1999 4:10 pm
686
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...
Kevlin Henney
Kevlin.Henney@...
Sep 1, 1999 4:14 pm
687
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...
Greg Colvin
gcolvin@...
Sep 1, 1999 4:20 pm
688
... 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...
Beman Dawes
beman@...
Sep 1, 1999 4:22 pm
689
... 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...
Greg Colvin
gcolvin@...
Sep 1, 1999 4:28 pm
690
... 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...
Beman Dawes
beman@...
Sep 1, 1999 4:28 pm
691
Greg Colvin wrote: [...] ... submitted ... new ... an ... I know we disagree here, so let me make the disagreement stark: There are no ODR problems with...
Kevlin Henney
Kevlin.Henney@...
Sep 1, 1999 5:31 pm
692
... 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...
Reid Sweatman
reids@...
Sep 1, 1999 6:02 pm
693
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...
Beman Dawes
beman@...
Sep 1, 1999 6:22 pm
694
... 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...
Nick Ambrose
nicka@...
Sep 1, 1999 6:41 pm
695
... propose ... I tried this "nested namespace with namespace scope using directive" technique several times in the last two weeks, including in ...
Beman Dawes
beman@...
Sep 1, 1999 7:28 pm
696
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...
Paul Baxter
paje@...
Sep 1, 1999 7:58 pm
697
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 // ....
scleary@...
Sep 1, 1999 9:19 pm
698
This time I actually included the file! It's been a long week... :) -Steve ... copied) ... message is not ... impossible without violating ODR) ... confusion ...
scleary@...
Sep 1, 1999 9:32 pm
699
... 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"...
Reid Sweatman
reids@...
Sep 2, 1999 12:41 am
700
... 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...
Reid Sweatman
reids@...
Sep 2, 1999 12:53 am
701
... 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 ...