Since 5/7/2012 11:20:50 AM, gwowen has written 3 articles and participated in 523 conversations. gwowen signature: gwowen
gwowen's articles:
Items(3) /1
RTTI and Multiple Dispatch526 (8/2/2012 6:10:04 AM) comp.lang.c++ What would people consider the most idiomatic way to create an
Rock-Paper-Scissors style game in C++
class Choice;
class Rock : public Choice;
class Scissors : public Choice;
class Paper : public Choice;... Gareth
RVO344 (9/29/2009 5:53:03 AM) comp.lang.c++ As I think I understand it, RVO requires a hidden parameter. Assuming that the call has access to the declaration, and not the definition, how can the compiler possibly know whether the compilation of the func... Gareth
Compounds in Init lists335 (7/3/2009 7:13:57 AM) comp.lang.c++ I wrote a simple wrapper class around pthreads to implement a producer/consumer thread pool. A simplified form resembled this: #include class C { pthread_cond_t m_cond; } // with constructor C::C () : m_c... gwowen
Why C++ Is Not =?windows-1252?Q?=93Back=94?=5647 (12/4/2012 5:39:28 PM) comp.lang.c++ Why C++ Is Not �Back� by John Sonmez
http://simpleprogrammer.com/2012/12/01/why-c-is-not-back/
"I love C++."
"C++ taught me how to really write code."
"Back in the day I would study the intricacie... lmc(186)
Sorting within a template829 (12/15/2012 10:05:45 AM) comp.lang.c++
Hello,
I defined a template class that acts as a container for some type objects.
Since theose objects are heavy, I need to reference them using pointers.
Assume that each object has a compare functi... gbe32241(75)
Distributed array initialization1217 (1/4/2013 7:09:22 AM) comp.lang.c When declaring an array with file scope, you can specify its initial
contents, e.g.,
int data[6] = { 100, 200, 300, 400, 500, 600 };
Rather than initalize the full array at its point of declaration... ccollins476ad(2)
A shit hot fast *free* STL compatible sequence container!1111 (1/22/2013 10:51:54 PM) comp.lang.c++ First, its name:
neolib::segmented_array
Second, the timings:
std::vector random erase: 30.5306 seconds
std::deque random erase: 36.1193 seconds
std::list random erase: 28.3808 seconds
neolib::segme... leigh(1003)
IF-free conception.14637 (2/15/2013 8:51:47 PM) comp.lang.c Good Time to all, Amici(Friends).
Here, i'd like to discuss how to reduce conditional branches in the code. 1st of the all, i would like to share some tricks. Their description is here (http://alg0z.blogspot... z0dchiy8(45)
printf mystery129 (3/1/2013 4:17:51 AM) comp.lang.c Hi All,
I came across this printf statement by David Korn who won an award in International Obfuscated C Code Competition (IOCCC). I couldn't really understand the logic. Please explain.
main() { printf(&... theemeraldsoul(8)
How to arrange some numbers13149 (3/15/2013 4:02:03 PM) comp.lang.c Hi, a simple question:
i want to arrange some int numbers; i want to store them
in an array and then print them on the screen.
Look below:
int numbers[10], arranged[10], i;
puts("Insert 10 int... 2970invalid(17)
Who can explain this bug?5834 (4/17/2013 7:49:50 PM) comp.lang.c Platform: gcc 4.6.3 on AMD Athlon(tm) II X2 245 Processor on
Ubuntu 12.04
The bug I thought was due to a particularly hard to find memory access
problem (see other thread I started today) seems to be even... dmathog(163)
reference type for C1515 (5/16/2013 2:08:43 PM) comp.lang.c I like the reference type that has been introduced with C++
I wondered why isn't that feature retrofitted in C.
Is there something hindering it?
thx - roar -
... roland.arthaud(12)