« first day (635 days earlier)      last day (4314 days later) » 

12:00 PM
@TonyTheLion Lol. 'Gorilla warfare'. What a gem
@StackedCrooked Linky? I can't trace it from the reply links
 
@sehe yea was funny
 
@sehe The STM library can be checked out using the command bzr branch http://jalf.dk. I'm using it in this project (which you've seen before iirc).
 
@sehe There’s a scene like that in The Uplift War – albeit with actual (semi-sentient) gorillas
(highly recommended books, by the way)
 
Ah - I thought you had /another/ STM lib
 
@RMartinhoFernandes He posted a non-question saying "I need X" so I posted a non-answer saying "I need Y".
 
12:06 PM
@KonradRudolph Yeah. 99% says the youtube commenter doesn't know how to spell 'Guerilla warfare', though
 
sbi
Anyone here knows London? There's a project to renovate The Gherkin. This is what it should look like afterwards:
 
@sbi In favour
 
Is that a giant penguin?
 
sbi
@Collin No, that's a baby octopus.
 
@sbi oh right, I always get those two confused. Some times I even mistake gorillas for twats ¬_¬
 
12:09 PM
@sbi I see your link has a much better photo
 
sbi
@thecoshman Waves
 
@sbi you didn't need to explicitly mark that as a response to me :P
 
@thecoshman still trying to provoke the ape. you must be bored
 
sbi
Like I'd be provoked by ants tingling my feet.
 
@sbi no, you would just start eating them
 
12:14 PM
@sehe Fixed.
@sehe And is probably ununderstandable by OP.
 
> The issue is that by containing several lists at once, you're doing far more comparisons than is generally a good idea. It would be perhaps faster just to stick them together and re-sort. It's possible to add two pre-sorted lists in linear time (to the total number of elements). More than that, and you're looking at log(n).
can't believe I wrote that
 
No need to guess. The OP will choose.
We've had the discussion on how to teach modern C++ numerous times in this room.
 
@sehe Sure. Yours is more elegant.
 
Thanks
 
sbi
@Cicada And very likely traces back to an idea by @Xeo, whom he didn't even mention in his answer.
 
12:20 PM
@sbi Nope it doesn't. Since you can search history, you'll find I advertised this ever I stumbled on tuple_comparison.hpp. I did think it was novel, then. Don't know whether it. BTW, see also my edit
 
sbi
@sehe Ah, Ok, had you pegged wrong then. I apologize.
 
:)
 
sbi
I like this tweet:
> Fake tan. Fake boobs. Fake nails. Fake hair. Tell us again how you want a real man. I'm so very interested. — ☛ TED ☚
 
Tell us how you want a non-fake girl when you dislike pale skin and small boobs.
4
 
man
I've got only 1513 unread e-mails
 
12:24 PM
poor thing. I know a site...
 
@Cicada plenty of people like pale skin and/or small boobs
 
Yeah, like, 11 people.
 
@Cicada is this some sort of personal gripe you have?
 
I have a class with lots of member pointers. Initializing every ptr with 0 in the initialization list is tedious, is there a better way to initialize all member pointers with 0?
 
I for one prefer the pale look
 
12:26 PM
No no. I'm just bored. Several simulations running and I'm out of work until they complete.
 
I leave you to figure out the other half
 
@Nils Aren't they automatically default constructed.. ie, to 0?
 
Give me good body, sparkling eyes. Big boobs kinda turn me off. Often. On the right person, it can be ok.
 
memset(this, 0, sizeof(MyClass)); works if you have only pointer members.
@Collin since when?
 
@Nils Use a template which always initializes.
 
12:27 PM
tanning on the microscopic level is baking your skin cells, causing it to turn darker in color
 
@Collin only in debug builds will you get default values like that, usually something that stands out, like c9c9c9c9
 
@Cicada cute new pict you have :)
 
it's very unhealthy despite the misconception that it makes you look healthier
 
@Collin As in: no. In C++ you pay for what you need. You can, though in C++11 declare the fields like struct X { T* m_t(0); };
@Nils And your class is POD
 
@Neil well, there is a happy middle ground, as with all things, in moderation a tan is good
 
12:28 PM
@sehe I'm thinking of stuff put into a container
The template default constructs the initial size
 
@thecoshman Pale skin is associated with not getting out much, which perhaps is antisocial
 
sbi
@Cicada For starters, I could look outside of Europe. I bet that would help solving the "pale skin" problem.
 
@DeadMG Could you be a bit more specific?
 
sbi
OTOH, I have no dislike for any natural skin color. Nor do I prefer breasts of a specific size. For me, the woman in my bed has always been the most beautiful one in the world. Sometimes that felt awkward after we broke, and the veil lifted from my eyes :), but as long as we were together, it always felt great to be with the most beautiful woman in the world.
 
but it's not unhealthy in the slightest
 
12:29 PM
 
@Nils you could put all of the those pointers into an innder struct, and just set that struct = { 0 }
 
@Collin container of unique_ptr, shared_ptr. Otherwise use Pointer Container Library
 
@Nils Why, though? Use aggregate initialisation, it’s cleaner and clearer, obj x = { 0 }
 
@thecoshman That's an idea :)
 
then use always_initialized<T*> as your data member
 
12:30 PM
@sehe I'm thinking of somehting like vector<int*> a(10), where all the pointers would be 0.
 
@KonradRudolph aggregate initialisation?
 
@Collin Duh, std::vector<int*>(10, null_ptr)
 
Use C#, it's cleaner and clearer.
 
@Cicada Safer, most importantly. Yes I do like C#. But I might like python better once I learn it properly
 
I started learning python and it's cool.
 
12:31 PM
Yes, you will.
 
@Cicada oh you, you so funny when your bored and have nothing better to do
 
Unless you can't live without static typing, then you should learn Haskell.
 
Yeah me too. Somehow, I can't find real applications for it, well, probably because Boost Python looks scary still.
 
@DeadMG interesting idea :)
 
sbi
@Neil That's bovine excrements. All your (natural) skin color tells is where you ancestors came from and what they ate: essays.backintyme.com/item/332
 
12:32 PM
@Nils The only idea that is O(n) in data members.
 
Static typing is nice. Type inference is so much nicer.
 
Once I can get a low-friction interop between python and C++, I'll be over the threshold, I think
 
@Cicada orthogonal concepts, how can you compare which is nicer?
 
SWIG?
 
all the other ideas are O(nm) in data members and constructors, or O(n) in initializations
 
12:33 PM
@Cicada So, do C++
 
Boost.Python is kinda undocumented.
 
@KonradRudolph Please define dynamic type inference? :)
 
@CatPlusPlus Bah, SWIG, “low-friction”? Boost.Python
 
@CatPlusPlus Is that easier? Boost.Python looks a lot more promising, considering that it will more likely support generic code <whistle/>
 
@Cicada well, a priori nothing speaks against it, it’s just that types are usually inferred for dynamic type systems, no?
 
12:34 PM
@KonradRudolph Precisely, I tried SWIG++ before (~ -5 years) but I wasn't too happy
 
@KonradRudolph What? Static you mean?
 
nono, dynamic
 
I don't get you (once again).
 
and you never will
 
Yes brother. You're always so weird and german.
 
12:35 PM
what I mean is that most assignments in dynamic type systems infer the type based on the expression
 
time for some mc hammer me thinks
 
@KonradRudolph But that is done at runtime.
 
in rare exceptions you would cast explicitly, however, e.g. in PHP via $x = (int) $y;
 
sbi
@Cicada No, C# is not always cleaner and clearer. Once you got the hang of the power of C++' templates, C# feels like it ties your hands.
 
@Cicada quite
 
12:36 PM
@sbi there. You went and tweeted an animal pic. Pretty sure you did that on purpose :)
 
good morning everyone :)
 
@thecoshman Hammer time!
 
@sehe I really like SWIG personally.
 
@sbi Well let's say it has a nice modular system.
 
sbi
@sehe I was actually thinking of our discussion when I did that. :)
 
12:36 PM
@Flexo SWIG++ or SWIG? With Python? With templates?
@sbi See, I sensed it. Still, you posted it in the room before that
 
@Cicada Just to clarify: do you object to my characterisation of this as type inference or to some other aspect of my statement?
 
@sehe never heard of SWIG++. SWIG is as sane as you could hope for with templates (%template gives instantiations of templates a unique type in the target language)
 
(and I promise I won’t argue)
 
@KonradRudolph I'll rephrase mine to be the clearest I can: "statically typed languages are nice. but languages that infer the type are nicer." I realize the concept are orthogonal (although in practice most if not all type inference systems work on statically typed languages), but I don't see how that prevents me from comparing them.
 
@sbi That's natural pigmentation, that's different
Tanning is physical burning of the skin cells
 
12:39 PM
@Cicada Okay, I can live with that
 
@sbi C# is indeed not perfect and lacks, for one, C++ templates. But it's so much safer, easier to read, and overall consistent, that I'm ok with a little less power.
On a related note, with reflection you can get a much better result that the accepted answer.
 
Ok. I'll keep it in mind for when I get the time to tinker take two
(that took time to keep the alliteration)
 
Arguably slower, but certainly more generic and less verbose.
 
sbi
@Neil That's BS, too. Tanning first and foremost is the triggering of natural pigmentation, which does vary naturally depending on the amount of UV radiation hitting the skin.
 
@KonradRudolph Boost.Python was annoying. The documentation is terrible.
 
12:42 PM
@sehe feel free to poke me with questions on it. I like
 
Got swag? Try swig!
 
@CatPlusPlus I didn’t need the documentation, luckily, it was intuitive enough for my small tentative steps
 
How do you do tags.
 
sbi
@Cicada Yeah, I have found reflection to be a common answer to "how do I do this in C# without templates?" But I despise doing something at runtime when it could be done during compilation. That's just an incredible waste of resources.
 
@Cicada [tag:like-this] or [meta-tag:like-that]
 
12:42 PM
@Neil not at all. your cells to not oxidise as a result of UV exposure and thus are not 'burning'
@sbi I despise doing something that can be done by something else
 
sbi
@Cicada You look into another message's history and steal it from there.
2
 
@thecoshman If you want to get technical, no, you're not browning in a pan with chives and onions. Technically you're not baking anything, but that's why they're dark
 
@Cicada ¬_¬ what if I told you I found your annoying behaviour erotic?
 
I swear it was possible to abuse the meta status-XYZ ones to get status-anything in red
 
Mar 28 at 20:27, by R. Martinho Fernandes
Why is it that any time someone uses this tag thingy, everyone starts talking in tags?
@Neil lol
 
12:46 PM
If only you could get the color right
 
¬_¬ I feel another plonking is on it's way
 
@sehe @Cicada did it twice already methinks
 
@Neil Oh. Trying to suppress virgin-inspired remark
 
sbi
@Neil No, it's not. Pigmentation is first and foremost an adaption to your needs of vitamin D production and UV radiation. In the winter, when there's far less light where I live, I am much lighter than in the summer. Also, during the summer, mostly my face and arms are tanned, because I usually wear trousers and (short-sleeved) shirts. Read that article again. There's a fine line between getting not enough vitamin D and getting too much UV radiation. Your skin tries to stay within that line.
That's all within the limits of your genes, of course. I can never be as dark as an African, and should I try to achieve that nevertheless, I'd likely caught skin cancer.
 
Wokay
 
sbi
12:49 PM
Cleansweep.
 
@sbi thank you so much! go get a pastry!
 
Mildly NSFW and quite disgusting:
http://www.faniq.com/images/blog/ae2db708f293792854be39df37b3c007.jpg
 
Then why are you linking it.
 
@CatPlusPlus Why to share it of course
 
...
 
12:51 PM
Why do you think people say, "Oh god, this tastes awful.. here try.."
 
sbi
@thecoshman You can stick your pastry talk where the sun doesn't shine. I already told you there's no pastries here.
 
So in C++11 you can initialize a struct just with myStruct = 0?
 
sbi
@CatPlusPlus For the very same reason we all clicked on the link.
 
@sbi In all of Berlin, there is not on pastry shop, I don't very much doubt it
oh boy... opening paragraph for CV is proving tricky
"I hate my current job, I wan out" just isn't going to fly I don't think...
 
I would give anyone who sent me that cover letter two jobs.
 
12:55 PM
As I'm intending to just cold apply for a job, I don't think I can make the CV that specific, it's mostly going to be the covering letter explaining why I want to leave a the job with out sounding like a moaning little whore
 
@thecoshman You're not supposed to write it like you don't like your old job because supposedly it makes them think you won't like the new job either
 
@SamDeHaan I... I could send you a coverign letter
 
Even if it's ridiculous to assume people ever leave their jobs despite the fact that they love it
 
@thecoshman Sadly, I don't have any jobs to give.
 
@Neil I know, I just got to work out the right way to spin it
 
sbi
12:56 PM
@thecoshman I don't know what to make of this area here. The next bakery shop is a 10mins walk away, and it's raining cats and dogs. Also, I just had lunch (beef roast with peas, pasta, and an incredible sauce, all of which I cooked on Monday morning), and dessert (strawberry yoghurt, which I made last night). I am stuffed.
 
@thecoshman Looking for opportunities for growth.
 
@SamDeHaan more the opposite, I want a smaller company
 
@sbi strawberry yoghurt desert? Most deserts I know are made mostly of sand. Germany's strange.
 
any way, for now I have to still act like I give a crap here, just enough to not get fire for doing jack shit
laters
 
sbi
@SamDeHaan I almost always mess up those two. :(
 
12:57 PM
@thecoshman growth doesn't mean a larger company, growth means that you feel like your current placement is a dead-end, shows no career advancement, unsatisfactory compensation.
 
@thecoshman "I really love my job, but as it turns out, I sadly had to put in my resignation after the long hours and the bad pay. It is a decision I shall forever regret."
 
@Neil Nope, you might also consider the next job 'bad pay' or 'long hours'. Person filtering CVs doesn't know.
 
ooh, try to do some work, I shit gets in my way, joy
 
sbi
@thecoshman IMO, rather than bitching about your current employer being bad, it's better to list what you want in a job, and, when asked, to politely hint at your current job not providing these.
 
@sbi pudding stomach, there is always room!
@sbi yeah, I am not as silly as my moaning may make me sound :P
 
1:00 PM
somehow, I often doubt that :P
 
sbi
@thecoshman I still have half of that yogurt left, despite giving some of it to a coworker who didn't want to go for lunch with the others when it's raining that bad. Should Hunger rise her ugly head again, I'll just dig into that...
 
I just need to spend an evening working on my CV properly
 
@sbi Btw. Do SomeType and SomeOtherType share a common ancestor that has unrelatedMember?
 
The two hardest paragraphs I've had to write in my life have been the first paragraph in a cover letter and the first paragraph of my thesis.
 
@thecoshman And then when you're done, share the portions of it you're unsure about with the Lounge, and let us destroy it for you.
 
1:02 PM
strangely it was easy for me to write the body of the thesis
the introduction was killer
 
@SamDeHaan awesome! passive aggressive constructive complaints!
 
sbi
Ha, there's a guy working outside my window (4th floor, on a scaffold), looking longingly at my desk. The fact that half of my coworkers didn't go for lunch due to the heavy rain makes his job (he is fixing the façade of the house) so much more miserable. I try to smile friendly nevertheless.
 
@sbi that must have been one epic vat of yoghurt
 
sbi
@Cicada I'd have to look at that question again. IIRC, it was string, int, and UDTs. ICBWT.
@thecoshman 1ltr.
 
@sbi it's probably comes across as smug
 
1:04 PM
@sbi Read my question again.
 
@sbi :O
 
sbi
@Cicada Too lazy. That's old water under the bridge. Not only has this code been working for a long time now, but another two months and I'll never see it again.
 
Okay then. I was writing something more elegant than the accepted answer. Nvm.
 
That's what I ended up with so far: codepad.org/YgGx9fl8
 
Why, why, why.
 
sbi
1:09 PM
@Cicada Feel free to do so. I might even look at it tonight, if you behave. But really, I have given them my 8 week notice yesterday, and while we'll part in peace, part we will. I'll be writing C++ code for a living again!
Fuck languages without real templates!
 
@sbi +1 which language btw ?
 
... kids and attention spans
 
are mutually exclusive.
 
sbi
35 mins ago, by sbi
@Cicada No, C# is not always cleaner and clearer. Once you got the hang of the power of C++' templates, C# feels like it ties your hands.
@sehe "...the attention span of the common mosquito" — Terry Pratchett.
 
intresting
 
1:12 PM
@sbi living the dream man!
 
Humm maybe I need to educate myself with regards to templates.
 
@Nils Please do. Memset is not safe, unless you actively make sure the struct is POD
 
Well I did, there are just pointers in it.
 
so... opening paragraph on CV something like "I enjoyed spending the year since graduating working in a corporate environment, but feel I would better suited to a role working in small projects working more directly with the end customer"
 
How to do it with templates and just C++ 98.
@thecoshman Just say that you can't imagine your professional future at the current pos.
 
1:16 PM
@Nils myes?
 
or something like that
 
How can I have an empty else block (with just a comment) in Bash?
 
I feel like I need to back it up though, so it doesn't sound like I am just changing on a whim
 
ouh dear
 
If I just have a comment in the block, I get the error
 
1:17 PM
@KonradRudolph why would you want to?
 
Python, hello?
 
> syntax error near unexpected token `fi'
 
but you could try
`else
;
fi`
 
@thecoshman To document that this is intentional, otherwise it looks like the code duplicates a piece and could be consolidated, but this would lead to a nasty bug. I actually almost just did this
@thecoshman Unfortunately, does’t work either
Bash doesn’t like you sticking semicolons in places where they have no business ;)
 
just do something like echo "work around for sillynees" > /dev/null
 
1:19 PM
I once did a backup check in bash A=B instead of A = B. It always succeeded.
 
@thecoshman I don't write CV's, so take this with a grain of salt. Your next employer doesn't want to hear anything bad about your previous employer. Just say that you're looking for a position with more X (customer interaction, personal responsibility, etc are probably good for the change you're looking to make)
 
if tar xf "$tarfile"
then
	: # do nothing
else
	echo "Failed to extract $tarfile"
	exit 1
fi
 
@SamDeHaan agree
 
@Nils What's wrong with codepad.org/QMRcsSEO? ah you want c++98
 
@SamDeHaan yeah, that's what I am trying for
 
1:20 PM
@thecoshman That should be on a letter of motivation, not a CV.
 
@KonradRudolph I usually use true
 
@StackedCrooked probably yeah
 
@sehe not actually want, but need it right now
I know you can do that in 11.
 
@sehe cool, thanks
 
@thecoshman You always run the risk of alienating a potential employer when you say you want to get away from X (corporate environment). They may be small, but still like the word corporate to imply that you aren't going to show up in a dirty white t-shirt, spilling your beer all over the servers.
 
1:21 PM
bash sucks.
Bash bashing!
 
@StackedCrooked I think it's ok to have a (short) intro at the beginning of your CV about who you are, and what you enjoy working with, but it shouldn't be anything specific to the job you're applying for. That should be in the separate letter
 
@sehe It does, but I’m more and more surprised at how powerful it is, I’m actually building a whole pipeline in it at the moment and I don’t really feel the desire to use another language
 
@SamDeHaan I would never waste good beer spilling it on servers :O
 
and as the others have said, really nothing negative, either about your old job, or, well, anything else
 
well, part of the reason is the fact that I’m piping some pretty huge files to and fro, and without piping this would be absolutely impossible to handle
 
1:22 PM
@jalf that's my train of thought as well
 
say what you enjoy, not what you dislike
 
@thecoshman Exactly my point: if they have that image in their head when they see the CV/letter, you won't have a chance to correct it, because you won't get the interview.
 
(= too big to fit in memory etc.)
 
@SamDeHaan "PS: If you hire me, I promise not to spill beer on your servers"
 
@KonradRudolph said the duchess to the vicar
 
1:23 PM
@DeadMG operator const T& const { return t; }
second const is too much
 
@jalf That's another approach, should fix it most definitely.
 
@Nils Should have () after &
 
@DeadMG have you seen our web dev around recently?
 
domagoj?
 
the very same
 
1:26 PM
I saw him... last night, I think
 
oh ok, so he's still alive then :P
 
then I can do always_initialized<MyClass> myObj; and then?
 
yeah
 
My guess is phase shifted.
 
he's one of those guys that has a really strange sleep timing
@Nils And then the object is always initialized.
 
1:28 PM
I don't understand how all the members of MyClass will be initialized.
 
strange to you, or strange to those of us who sleep at night?
 
@Nils No, make each member of MyClass an always_initialized.
(at least, all the ones you need, like pointers)
 
I don't undestand what all the code is for. It doesn't do what the OP asks. It eats tabs. It adds extraneous output. It looks like you've coded a broken, inflexible version of grep. — sehe 1 min ago
 
uhh..
I want 11.
 
@KonradRudolph oh I like bash, for getting some stuff done. I hate it as a scripting language
 
1:31 PM
@Nils 11 what?
 
@DeadMG and how do I call operator T&() { return t; }?
C++11
 
it is valid C++11
but also, I actually am not entirely sure.
you can of course change the getter to whatever you want...
 
@Nils static_cast<T&>(obj); or T & t = obj;
 
nah I think I'll stick with the internal struct for now
 
The C++11 solution is {}.
 
1:34 PM
With C++11 I would just write int *q{};
 
no it isn't
 
yes
 
oh wait, I misinterpret you
 
anyways I still have to improve my templates knowledge
 
Oh god. This guy is crazy. How did he get 1k rep
not true: version 1. Also, irrelevant. It is still broken. What's wrong with grep -E 'key1|key2|key3' anyway. Many relevant options (-i, -v, -R) as a bonus — sehe 2 mins ago
 
1:36 PM
see
what the fuck is -i or -v or -R?
 
who cares? Why do you want to know? man grep is your friend.
-i ignorecase, -v inverse match -R recurse directories
 
at least Bison has names like --report-file and --report=all
 
@DeadMG Those have long versions as well.
Those are just the short ones.
 
Yeah, I tend to keep comments shortish.
 
I'm off have to get stuff done
 
1:38 PM
--ignore-case, --invert-match, and --recursive.
(I had to look those up because I only know the short ones...)
 
Thanks robot. The GNU getopt lookup engine
 
@sehe Pretty sure the robot is the everything lookup engine.
 
as far as this CV is concerned, I just loved working such a shitty complex system
 
Oh, you're lying.
 
1:46 PM
Todays WTF is a nice example of what happens when you put PHP in the wrong hands
 
@RMartinhoFernandes well... bending the truth, as you do in a CV
 
Meh. I don't.
 
Nah. You're looking at the positive side and taking away the things you can learn.
 
"didn't stab him for being stupid" --> "good at settling differences"
but its true, I have enjoyed working with the team... I get on well with my self
 
@sbi pastebin.com/ajm2pJ7L Pure runtime, I know, and not extremely type safe either, but hey, still better than your old code.
 
1:48 PM
@Cicada ew, pastebin
 
Expression trees are cool.
 
Pretty spiffy code there
 
( on its own line? Really?
It's like putting { on its own line, except worse.
 
I now have access to ALL the Internets at home.
And with that said, I'm off to work.
 
OMG, you're the best.
 
1:50 PM
@CatPlusPlus Sorry for making code clearer.
 
@EtiennedeMartel oh, big house
 
@Cicada It's fugly.
You should feel bad.
 
Being one week without Internet access was hard.
 
@Cicada more lines != clearer
 
Also, I totally forgot what the heck I was going to do.
Damn you chat.
 
1:51 PM
@RMartinhoFernandes grab a pastry
 
I'm not saying it's pretty - I'm saying the opposite is more ugly.
 
No it's not.
 
    E.Lambda<Action>(
        E.Assign(
            E.Field(E.Constant(someVar), field),
            E.Call(E.Constant(this), creationFunction, null)
    )).Compile()();
 
This is an expression tree, lone ( make the tree structure visible.
 
@Cicada Nope, indentation does.
 
1:53 PM
@Cicada fixed
 
Tree literals are never readable anyway.
 
Let us all harmonize and agree.
0
Q: Singleton C++ template class

PatrykI realise that there are already few topics like this on SO but I did not find any that would answer my problem. I have already written my template singleton class using this tutorial http://www.codeproject.com/Articles/4750/Singleton-Pattern-A-review-and-analysis-of-existin but unfortunately ...

TADA.
(Also, it's secretly a dupe)
 
@RMartinhoFernandes I think I am going to be sick
 
the best "singleton" is template<class T> class singleton : T {...};
 
(I realise that there are already few topics like this on SO)
Not so secretly ^
@Abyx Inheritance? template <T> using singleton = T;
 
1:57 PM
@Abyx no. the best singleton is 'GTFO'
 
Did I get aliases wrong again
 
@sehe wut?
 
Women are like shed roofs, if you don't nail them hard enough they'll end up next door.
oh I do like that one :D
 
T& get_it() {
    static T it{};
    return it;
}
Anything else is nonsense.
If you want a global, make a global.
 
1:57 PM
@RMartinhoFernandes @Abyx was making the point: don't use a singleton, I think. So the best singleton-of-T is T, was my interpretation
 
Also known as, a global variable is not a class.
 
@RMartinhoFernandes no. a good singleton should have const T& const_instance() and be thread-safe (in C++03)
 
@Abyx That one is.
 
Hehe. It is threadsafe.
 
@Abyx should not exist. FTFY
 
1:59 PM
@sehe not in C++03
 

« first day (635 days earlier)      last day (4314 days later) »