« first day (321 days earlier)      last day (4629 days later) » 

10:00 PM
Did the Elders approve?
 
are there any new books or updates of older books coming out soon with regards to the C++11 standard?
 
Probably.
 
Any that you know of?
 
Nope.
 
I'm thinking of buying Accelerated C++: Practical Programming by Example: amazon.com/dp/020170353X/?tag=stackoverfl08-20
but I don't know how much the new standard conflicts with the older version
 
10:14 PM
MSVC linker doesn't see libraries even though they're on the command-line. What the hell.
 
How silly of me, I couldn't actually simplify (by much) the original declaration.
 
Or maybe it's actually SCons acting funny.
 
10:39 PM
hm, i posted an answer without sufficient coffee in my blood
i wonder if anyone could look at it and point out flaws...
0
A: How to force all derived classes to implement a virtual method?

Alf P. SteinbachIf you control the base class AbstractDep then you can enforce that concrete leaf classes must be created by using a class template WithCloning. This leaf can then be sealed so that it cannot be inherited. Or more precisely, instances cannot be created of a derived class. class AbstractDep { tem...

now: making coffee
 
@AlfPSteinbach is it still light in Norway?
 
Anyone uses a 'maintenance' script or some sort on their own codebase? Not for indentation or style but for instance right now I'm changing all my uses of std::tuple_element to my own tuple_element. Now I want to future-proof that with a script that signals any use of std::tuple_element.
 
@StackedCrooked depends where you are, it's a long country. in northern norway it's light 24h
 
@LucDanton why are you removing the "std::" part?
 
I suppose I could call that a 'best practices' script.
@TonyTheTiger I have my own.
 
10:50 PM
@AlfPSteinbach Even now in September?
 
oh, you implemented your own tuple?
 
@LucDanton grep?
 
@StackedCrooked I'm not looking for ideas on how to do it, I'm checking whether anyone else does that for their pet projects.
 
user457812
I don't use scripts for that, no..
 
The midnight sun is a natural phenomenon occurring in summer months at latitudes north and nearby to the south of the Arctic Circle, and south and nearby to the north of the Antarctic Circle where the sun remains visible at the local midnight. Given fair weather, the sun is visible for a continuous 24 hours, mostly north of the Arctic Circle and south of the Antarctic Circle. The number of days per year with potential midnight sun increases the farther poleward one goes from the equator. There are no permanent human settlements south of the Antarctic Circle, so the countries and te...
 
user457812
10:52 PM
I usually just set up a metric fuckton of typedefs so I can swap things out if I need to later
 
@TonyTheTiger No, but using my own trait allows me to write generic function that can still work with e.g. boost::tuple provided there is an appropriate specialization.
 
oh I see
@nil "fuckton" -- lol spelling mistake
 
but it's pretty dark in oslo right now
 
I do that sometimes. And I use grep for it. Or sometimes the IDE's search functionality. (Assuming you mean textual matches to 'std::tuple_element'.)
 
user457812
Spelling mistake?
 
10:53 PM
what fuckton is not a spelling mistake?
 
user457812
No. What would the mistake be?
 
ohhh, I misread your sentence
a fuck ton of something
 
user457812
Ah, I never put a space in there.
 
e.g. template<int I, typename Tuple> decltype( std::get<I>(std::declval<Tuple>()) ) my_very_own_get(Tuple&& tuple) { return std::get<I>(std::declval<Tuple>()); } only works with std::tuple
 
but the concat of words confused me
 
user457812
10:54 PM
Sounds more like a proper unit without the space
 
@AlfPSteinbach Ok, so it's probably dark everywhere in Norway atm.
 
@LucDanton oh I see, now I get to see a use of decltype and std::declval
not sure when to which, but yea
 
Well std::declval is a function template, not a class template, so it can only appear in expressions, not in types.
i.e. std::declval<int> foo(); doesn't make sense.
 
Concerning the midnight sun near the artic circle: "Another related religion that suffers from this is Islam, where fasting during daylight hours in ramadan would imply total abstinence."
 
10:56 PM
decltype takes an expression and is the type of that expression (or the declared type of the passed lvalue, depending), so it appears where types appear.
 
WinSDK is sometimes just fucking annoying.
 
Did you forget to call InitCommonControlsEx?
 
@CatPlusPlus Let me be sure I have this straight. Are you saying there are times it's not annoying?
 
Well, when it happens to work.
 
Implementing resizable layouts without flickering can be a challenge on WinAPI.
 
11:02 PM
Meh, I don't do UIs with raw WinAPI, that's insane.
 
What do you use then?
 
Well, I did one dialog, for assert, but it's just resource and one function.
 
XULWin is a nice library for that. He he he.
 
@LucDanton so when does it make sense then?
 
Here? Some shell functions to find personal folders, exception handling, minidump stuff from dbghelp.
 
11:04 PM
As an expression; although a particular kind of expression, an unevaluated one such as decltype( std::declval<int>() ) foo();
i.e. decltype( expr ) is a type but requires an expression.
 
I should revisit my crappy crash reporter in C#, probably.
> Installation of the "Microsoft Windows SDK for Windows 7" product has reported the following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information.
> Please attempt to resolve the problem and then start Windows SDK setup again.
Gee, thanks.
 
user457812
Yay, my weekend has begun
 
user457812
Time for pizza, laziness, and starting about 20 new projects I'll never complete
3
 
11:21 PM
Ha, fixed it. Apparently they didn't think it would be possible for newer CRT redist to be already installed.
 

« first day (321 days earlier)      last day (4629 days later) »