I would like to get feedback on following operator templates which I am polishing for boost. The purpose of these templates is to define global operators in...
David_Abrahams@...
Jul 1, 1999 9:18 am
177
Beman Dawes <beman@...> wrote: [One concern is that the message written to cout by the job_timer class] I can't believe you've tied a class to cout! The...
Sean A Corfield
sean@...
Jul 1, 1999 9:18 am
178
... I have written such classes but with just one type T. (See http://www.eleves.ens.fr:8080/home/bonnard/NewLibs/Utils/comparison_ops.H) I have other similar...
Valentin Bonnard
Bonnard.V@...
Jul 1, 1999 9:36 am
179
... Why ? ... Like: http://www.eleves.ens.fr:8080/home/bonnard/agil/item.html#ProgressIndicator Note that this base class is by definition a DialogItem so it's...
Valentin Bonnard
Bonnard.V@...
Jul 1, 1999 9:46 am
180
... You don't like using multiple-inheritance for TotallyOrdered? I'm not sure we should have competing submissions in the same domain. It's enough work to...
Dave Abrahams
abrahams@...
Jul 1, 1999 12:47 pm
181
... Because the default assignment semantics are seldom what you want. ... eGroups.com home: http://www.egroups.com/group/boost http://www.egroups.com -...
Dave Abrahams
abrahams@...
Jul 1, 1999 12:48 pm
182
... I'm assuming just a cut-and-paste typo, but the about two functions should not be operator-. It would be convenient to add a class that pulls in all the...
Ed Brey
brey@...
Jul 1, 1999 1:08 pm
183
... 1) here the code redefine the default assignment semantics 2) there is no default assignment semantics at all -- Valentin Bonnard ... eGroups.com home:...
Valentin Bonnard
Bonnard.V@...
Jul 1, 1999 1:42 pm
184
... 1) unlike some people, I never try to avoid MI (in other words, I use MI when I feel a need for it) 2) I just cannot see how MI would be used here 3) this...
Valentin Bonnard
Bonnard.V@...
Jul 1, 1999 1:45 pm
185
... http://www.ozemail.com.au/~getknown/simetric.html#common ... contexts ... nothing ... Thanks to Andy, Ed, and Valentin for their replies. I had never even...
Beman Dawes
beman@...
Jul 1, 1999 1:59 pm
186
... See ... You are right, of course, that logically they are unrelated. The rationale for combining them was: * Avoiding header proliferation. * In...
... class] ... should be a ... timing ... elapsed() ... Seems like there are a couple of issues coming forward for job_timer and progress_display: 1) They are...
Beman Dawes
beman@...
Jul 1, 1999 4:24 pm
189
... doing the ... Ah, yes, that would be better. The code was written last year, before boost had the smart pointers. I will change it. ... looks ... hard to...
Beman Dawes
beman@...
Jul 1, 1999 4:24 pm
190
... the ... up ... What is needed is CLOCK_T_MAX or similar, which may be less than the max value for the underlying type. I have already had a couple of...
Beman Dawes
beman@...
Jul 1, 1999 4:24 pm
191
... This is to honor the fact that the SGI implementation uses compose1 and compose2 instead of compose_f_gx and compose_f_gx_hx for years now to stay...
Nicolai Josuttis
nicolai.josuttis@...
Jul 1, 1999 5:12 pm
192
... You don't need macros for that. You can provide duplicate definitions, or inlines that call the official names. BTW: Is the sense of the #ifndef, above,...
Nathan Myers
ncm@...
Jul 1, 1999 5:47 pm
193
... But isn't that sort of the architectural version of "optimizing code before finding the best algorithm?" ... eGroups.com home:...
Reid Sweatman
reids@...
Jul 1, 1999 6:26 pm
194
Just a minor cavil from someone who does most of his programming on Wintel platforms: the C and system timer functions aren't very reliable, because they're...
Reid Sweatman
reids@...
Jul 1, 1999 6:41 pm
195
Not to be a pest, but personally, I'd rather see the timer and display functionality separated. Yes, you probably would always use the timer functionality...
Reid Sweatman
reids@...
Jul 1, 1999 6:44 pm
196
... It is possible to get this flexiblity without sacrificing (i.e. adding) the level of indirection that the reference/pointer causes. Something like this...
Ed Brey
brey@...
Jul 1, 1999 7:21 pm
197
... Wintel ... because ... in every ... Pentium and ... available, ... since ... instructions are ... handled ... subset ... chunk ... implementation layer ......
Beman Dawes
beman@...
Jul 1, 1999 7:45 pm
198
Well, the classes I've been using for my own stuff aren't templates, so they're not generic. If that's not a problem, I don't mind showing them. They're a...
Reid Sweatman
reids@...
Jul 1, 1999 8:06 pm
199
... I know (and I don't want to start a war about using macros again). I just used macros here because they were simple one-lines to make a quick hack for...
Nicolai Josuttis
nicolai.josuttis@...
Jul 1, 1999 8:39 pm
200
Hi, ... I think this applies to everything available from the boost pages: The main contribution is the interface which is augmented with an implementation...
Dietmar Kuehl
dietmar.kuehl@...
Jul 1, 1999 9:16 pm
201
... Can't you do the same thing with an inline forwarding function, wrapper class or some other mechanism that doesn't walk across namespace boundaries the way...
Dave Abrahams
abrahams@...
Jul 2, 1999 12:47 am
202
... Thanks for catching that. ... Good thought. I'll do that. ... eGroups.com home: http://www.egroups.com/group/boost http://www.egroups.com - Simplifying...
Dave Abrahams
abrahams@...
Jul 2, 1999 12:50 am
203
As somebody who has worked on the architectural definition of the Intel timestamp counter and RDTSC instructions, mind if I respond/add to Reid's statement...
Andy Glew
glew@...
Jul 2, 1999 1:48 am
204
... The C++ standard provides a good example of just such a generic approach: allocators. They allow generic routines to work with platform-specific memory...
Ed Brey
brey@...
Jul 2, 1999 12:33 pm
205
... better? ... more ... I very much agree with Dietmar that this is an important issue for boost.org. I don't know of any single general approach to dealing ...