Type: Posts; User: dude_1967
Search took 0.05 seconds.
September 19th, 2011, 11:33 AM
And I also forgot to add that one of the real tricks is finding reliable ways to coerce the compiler into constant-folding the coefficients, not merely getting the math unrolled. This...
September 19th, 2011, 11:28 AM
Yes. I agree, I agree and I agree with all three sections of your text.
And I really do like your C-style array suggestion. In fact, I'm just in the process of seeing how it is unrolled or even...
September 19th, 2011, 10:47 AM
With pointer : Yes and no.
With std::array : Yes.
I am simultaneously investigating compiler-time unrolling in combination with compiler-time constants. The constants in a const...
September 19th, 2011, 09:48 AM
No, that one did not work.
But this cool tidbit works with GCC. I tested it with GCC 4.5.2
template<const unsigned order>
September 19th, 2011, 08:36 AM
It's been a while since I checked in here.
Is it possible to use an array of constant values as a template parameter. I am writing preliminary benchmark code for ISO/IEC 14882:2011, so I...
March 1st, 2011, 05:25 PM
Thanks. All of this helped.
March 1st, 2011, 04:43 PM
I can understand that. In fact, for a day or so, I was content to just figure it along those lines.
But is this really an implementation detail? What if someone wanted to use some ctor/dtor...
March 1st, 2011, 03:43 PM
I am studying subtle differences in the implementation of std::vector<T> for Microsoft and GCC compilers.
The program shown below gives different output for the two compilers. You need...
January 25th, 2011, 12:51 PM
Quicker than a blitz as usual, Paul.
January 25th, 2011, 12:40 PM
I know, I must be a dork for not knowing it. But how do you delete a pointer created with placement-new? I'm trying to get with the sample below and I keep thinking that there should be...
December 2nd, 2010, 04:03 AM
Thanks for the further suggestions.
The types I am creating with placement new never delete. They also don't alocate any further resources internally.
It's kind of a funny region --- the world...
December 1st, 2010, 12:45 PM
December 1st, 2010, 12:28 PM
Lindley, I can't add to your rep any more because the box won't let me. Wants me to spread it around.
But you rock. All the other gurus too.
December 1st, 2010, 12:27 PM
Oh. I have heard of those, variadic templates. They came up in a previous post.
Maybe I'll go into the intricate depths of the templates and try it again.
Maybe I can make it prettier the next...
December 1st, 2010, 12:14 PM
Yes, what an astute observation. Thank you.
I tried it that way a few times, but lost confidence because of the complexity of the solution details.
At first, I actually did make a global...
December 1st, 2010, 12:01 PM
Right now my custom buffer returns zero if the call to placement new exceeds the available memory in the buffer. Perhaps I should add to my custom buffer a public member which can be queried...
December 1st, 2010, 11:53 AM
May I clarify my question now that I have worked on this a while?
If my custom buffer returns (void*) 0u, will placement new correspondingly return 0?
For a bit of background: I am working on...
December 1st, 2010, 11:44 AM
Could you please clarify some technical isses regarding C++ evolution?
There is ISO/IEC 14882:2003, also known as C++ 2003.
There is also ISO/IEC...
November 24th, 2010, 02:50 PM
So just one more thing...
Can I coerce placement new to return 0 if my custom buffer is full?
If so, how?
November 24th, 2010, 02:45 PM
Oh... Silly me! You guys mean it's already there.
I got it.
Please disregard my last post.
Thanks so much.
November 24th, 2010, 02:28 PM
Yes, thank you.
[Edited]: Disregard previous text.
November 24th, 2010, 12:30 PM
I'm working on a few generic code sequences which should in some ways mimic the functionality of global operator new. I believe the code might be considered in bad taste. However, I...
November 22nd, 2010, 05:26 PM
I have used your suggestion, adapted to the application.
The language issues are working out!
The application still has a problem, but that is an unrelated issue.
November 22nd, 2010, 10:19 AM
Howdy, I've been gone a while.
I would like to make specializations of a template subroutine within the specialization of a template struct.
I know that the standard does not...
August 3rd, 2010, 10:24 AM
Makes sense. Thanks.
Best Regards, Chris
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.