« first day (1012 days earlier)      last day (3929 days later) » 

Xeo
12:00 AM
... what
 
btw, speaking of names; what is iota in std::iota really an acronym for?
 
It's not an acronym.
 
Xeo
nothing
 
Ell
What does it do?
 
Iota (uppercase Ι, lowercase ι; ) is the ninth letter of the Greek alphabet. Letters that arose from this letter include the Roman I and J and the Cyrillic І (І, і), Yi (Ї, ї), Je (Ј, ј), and iotified letters (e.g. Yu (Ю, ю)). In the system of Greek numerals iota has a value of 10. Iota represents the sound . In ancient Greek it occurred in both long and short versions, but this distinction has been lost in Modern Greek. Iota participated as the second element in falling diphthongs, with both long and short vowels as the first element. Where the first element was long, the iota ...
 
12:01 AM
@CatPlusPlus what is it a reference to then? according to google iota is the 9th letter in the greek alphabet
 
> The word is used in a common English phrase, 'not one iota', meaning 'not the slightest amount', in reference to a phrase in the New Testament: "until heaven and earth pass away, not an iota, not a dot, will pass from the Law" (Mt 5:18).[
 
@Ell you can use it to initialize a container with values that start at a certain point and increment sequentially from there.
 
@Ell std::iota (begin, end) will put 1,2,3,...,N in the range
:10798281 where's the typo? :-S
 
Ell
Integers of the array :P
 
@refp whoa, itoa really exists! I thought you meant std::itoa :(
 
Xeo
12:02 AM
@refp [0...N), no?
 
@Ell oh sorry, typical off-by-one error.. it's starting from 0
@Xeo yeah
 
14
Q: What does iota of std::iota stand for?

Jesse GoodI'm assuming the "i" is increment and the "a" is assign, but I could not figure out or find the answer. Also, it looks very similar to the non-standard itoa which I think is confusing.

 
Xeo
Wait, it takes a value - always
 
@Xeo no?
 
Xeo
So std::iota(first, last, n) results in [n...N)
 
12:03 AM
or well according to cppreference it does
 
Xeo
According to standard too
 
but I thought it used T {} as starting point per default
 
oh, it skips my code because I typod and my code has no effect
 
@MooingDuck itoa is not standard.
 
have any of you ever seen an iota used to represent a set or a unit vector in math ...
 
12:04 AM
but apparently not
 
@CatPlusPlus huh. I thought so, in c++11
 
if(Num == PARAM) Num==0; :/
 
Xeo
lawl
The compiler should warn on that
 
itoa "is" std::to_string in c++11
 
@Xeo it does, but we're near release, so I'm not allowed to do anything but bug fixes, including getting rid of warnings, so warnings are piling up and I didn't notice. (Mostly conversions from long long to int.
 
12:06 AM
@CatPlusPlus dammit. Now I misread that as iota :)
 
@CatPlusPlus and itoa is standard, it's in <cstdlib>
 
itoa is not standard.
 
39
Q: Where is the itoa function in Linux?

Adam Pierceitoa() is a really handy function to convert a number to a string. Linux does not seem to have itoa(), is there an equivalent function or do I have to use sprintf(str, "%d", num) ?

 
whaa?
 
@sehe and that is why acronyms suck
 
12:07 AM
AHAAHHAHA
IT WORKS
IT WORKS DAMMIT
 
@CatPlusPlus @MooingDuck you're right, sorry
@BartekBanachewicz "it works, IT WORKS!! I mean, it compiles.. now what's a segfault?"
 
@refp we know
 
@refp no, it really works
 
@MooingDuck I thought the internet turned nice after 2am, apparently not.
@BartekBanachewicz what does?
 
@refp my game after refactoring
 
12:08 AM
Love it when Ruby and Python people get going at each other. “My utter nonsense is better than your utter nonsense! Let’s fight!”
 
let's check under g++
 
@BartekBanachewicz go to bed, you've become delusional.
 
WAS*
* why acronyms suck
 
OO finally my website is backup
freaking 5 days
 
Ell
12:09 AM
I didn't know ruby and python people fought
 
Fuck programmers.
 
@CatPlusPlus cool with me as long as girls say that
 
Fuck abrasive language
 
@Ell it's not a matter of if ruby and python people fight.. everyone disagrees with ruby people.
 
@refp :D good one
 
12:11 AM
@sehe fuck languages.. it would be much more convenient if we all communicated with gifs
 
"`j`ifs"
 
@BartekBanachewicz I have my moments
 
now can anyone explain
before I go to sleep
 
nope
 
@BartekBanachewicz NO
 
12:12 AM
deps\GLDR\src/VertexBuffer.h:97:14: error: there are no arguments to 'bind' that depend on a template parameter, so a declaration of 'bind' must be available [-fpermissive]
 
like Lounge<C++> would ever explain anything to anyone, we just disagree and call each other ignorant
 
> Microsoft was the rebel leader with a very low-cost operating system and programming language. It grew up to become the benevolent dictator. Somewhere along the way it lost the word, benevolent.
 
now what the fuck does it mean
 
So why is it called unordered_map and unordered_set instead of hash_map and hash_set?
 
@BartekBanachewicz qualify it (std::bind), use this-> where needed, or make sure there are no undeduced template type arguments
 
12:13 AM
For the same reason map is called map and not tree.
 
Xeo
a) most guys had their own hash_map, so to avoid nameclash
 
Operational semantics vs implementation details
 
Xeo
And b) behaviour != implementation
 
@BartekBanachewicz it means it's symbol table at the time of instantiation lacks an entry named bind
 
@sehe ah, this->
 
12:14 AM
I hate it when the code crashes and the callstack lies about where :/
 
ICC and MSVCC allow this without the hassle :F
 
@BartekBanachewicz specializations might inherit from a different base class, which is why you need to tell the compiler about base members
 
@sehe ah, interesting
 
@BartekBanachewicz MSVC: naturally: it has the broken 2phase lookup, but ICC?!
 
@BartekBanachewicz oh, ICC breaks the rules too? didn't know that
 
12:14 AM
@MooingDuck ICC follows MSVS very closely
 
@BartekBanachewicz and here I'd thought better of them
 
@MooingDuck Probably a compatibilty "gesture".
 
for our (standard C++) purposes, ICC is really just MSVS with a lot of stuff to make faster code
 
@MooingDuck Probably requires -fno-quirks-mode
 
like Cilk, better vectorization, TBB, IPP and so on
 
12:15 AM
I'm tempted to ask SO why is_sorted_until is named the way it is, but then again I know that it will be vote-closed and I will suffer in hell for the rest of my life
 
@sehe we're doing it the easy way. >.> ...for compatibility...
@refp you learned! People can do that?!
 
@MooingDuck so if you are concerned with real performance, ICC will be amazing. If you want Standard C++, well... pick something else right now
 
@MooingDuck what did I learn?
 
@refp a cultural norm at least
 
Damn... the top question of the question on the newsletter has some controversy.
 
12:16 AM
@MooingDuck I'm sure ICC has it implemented correctly, because otherwise the world would have noticed. For one thing, I can't imagine ICC hasn't got an AST representation in it's compiler
 
I've asked ONE question on SO so far.. if anything I should learn to ask more questions
 
The OP of the question got deleted, and the author of the accepted answer got suspended.
 
@BartekBanachewicz icc isn't standard confirming ?
 
@Mysticial uhoh, ruby and python programmers, I wager?
 
@A.H. nope. not fully.
 
12:17 AM
C#
 
@Mysticial which one?
 
where do I change the email associated with my account btw?
 
Also G++ build works too, albeit a bit slower
 
I'm guessing it's somewhere on stackexchange, but I can't find it..
 
12:18 AM
@sehe "suspended for plagiarism", but it's not the like the plagiarism is really that bad (he did link). But it's probably that in combination with (what was probably) a sockpuppet account to ask the question.
107
Q: How does the following LINQ statement work?

user2591356How does the following LINQ statement work? Here is my code: var list = new List<int>{1,2,4,5,6}; var even = list.Where(m => m%2 == 0); list.Add(8); foreach (var i in even) { Console.WriteLine(i); } Output: 2, 4, 6, 8 Why not 2, 4, 6?

 
@sehe OpenCL 2.0 was released lately
 
@refp Edit your profile, dummy.
 
@CatPlusPlus ... nope, that's not it.
 
@Mysticial ouch
 
11
Q: How do I change the email address associated with my Stack Exchange OpenID?

testI registered my Stack Overflow account using the Stack Exchange OpenID provider. I later changed my e-mail, but I cannot change the e-mail address associated with my OpenID for some reason. Why is that, and how do I change it? I logged in to Stack Exchange and it lets me change my password, but n...

@CatPlusPlus ^ that is it though
 
12:19 AM
@Mysticial Oh... the asker and the answerer are the same person but on different accounts? that's fishy
 
@Mysticial oh boy, that was an extremely meh question. And a 100-fold dupe
 
@Borgleader The OP wasn't deleted when the newsletter came out.
 
Verisign is a better OpenID provider.
 
famous last words
 
12:20 AM
@Mysticial why didn't he just answer his own Q
@CatPlusPlus are they good at secutity too? :)
 
@BartekBanachewicz lol, how would I know?
 
It's Verisign.
 
@BartekBanachewicz because he wouldn' have gotten >100 Q and >100 A
 
If they're not good at security, we should just pack bags and go to the Moon.
 
@sehe ohnoes imaginary internet points, huh.
 
12:20 AM
Better start packing
 
say I have a class, when should functions be defined as members vs outside?
 
@BartekBanachewicz Hey. you asked
 
@sehe I know, I know. I should go to bed.
 
@seth outside if it's warm, inside at christmas
@BartekBanachewicz :)
 
@sehe noted.
I'm in new mexico and it's a balmy 93F right now, so inside it is.
 
12:22 AM
last commit and I'm ddooooo<yaaaawn>ooone for today
 
@seth inside is implicitely inline, inside is inevitably shared in the header file, so can be a dependency bottleneck and implementation leak
 
... is there a room for hardware o-o?
 
@seth for a header-only lib you usually do everything inside
 
I long for the day when temporaries can be used with range-based functions in <algorithm> without hassle
 
@seth I use in-class liberally, except in large projects where I tend to separate implementation files to speed up build process and minimize dependencies
 
12:23 AM
@refp you mean lambda functions?
 
1
A: Why can templates only be implemented in the header file?

Germán DiagoTemplates must be used in headers because the compiler needs to instantiate different versions of the code, depending on the parameters given/deduced for template parameters. Remember that a template doesn't represent code directly, but a template for several versions of that code. When you comp...

 
@BartekBanachewicz nhaa, I mean something like std::accumulate (g ()) where g returns a container
 
@seth or just search stackoverflow.com/…
@refp there is something. lemme find
 
Oh god I didn't know I could search with a faq tag, thanks.
 
sure, one could do [](auto& data) {return std::accumulate (std::begin (data), std::end (data));} (g ()); in C++1y or whatever, but that's not very neat
 
12:25 AM
Nov 2 '12 at 21:11, by Xeo
@sehe auto v = boost::copy_range<std::vector<int>>(boost::irange(1,5));
 
Xeo
@refp std::vector<int> g(); [](std::vector<int> v){ return std::accumulate(v.begin(), v.end()); }(g()); :D
Kinda like let-bindings. Just kinda
 
@Xeo ^ you had a better idea
 
Xeo
Boost.Range. Meh.
 
@Xeo "great" minds think a like ;-)
 
Xeo
I'd like me some let-bindings in C++, though
 
12:27 AM
He just doesn't care!
 
@sehe really?
wait, wrong..
 
what's the real problem with auto v = g(); beforehand?
 
Xeo
v
 
Xeo
I dislike such one-off variables.
The same way I disliked the one-off functions before C++11
 
12:29 AM
They don't like you either.
 
@BartekBanachewicz an extra line of code, everyone knows that this will slow down internet by a magnitude of a billion
 
@refp everyone, huh?
 
I agree with @Xeo
@BartekBanachewicz everyone.
 
Then write a proposal.
for now, goodnight.
 
I'll have this, first: blog.fefe.de/?ts=af105cff
 
12:36 AM
Damn I forgot. @Xeo is there some easy is_contiguous_memory trait for containers or do I have to specialize for array, C array etc?
 
@sehe google translate doesn't do a very good job with grammar.
 
Xeo
@BartekBanachewicz no and yes
 
> Files in computer are values in the memory , when u delete this files u reset it to the original value ( 0 )
Gotta love youtube comments
 
@BartekBanachewicz I don't really see the value of is_contiguous_memory. For what containers would it be true that are not just std::vector and std::array?
 
Xeo
@DeadMG std::string!
Also, flat_{map,set}
 
12:44 AM
@EtiennedeMartel You should get this
 
@Borgleader This is awesome
 
they have a few other ones
 
Ell
Night folks.y'all have a good day tomorrow!
 
1:00 AM
man
here's me, playing World of Warcraft to forget about my stomach, and the servers shut down for regular maintenance
screw you Blizzard
 
I play Blizzard
 
@DeadMG Regular maintenance? On a tuesday night? dafuq...
 
Xeo
@Borgleader Wednesday morning is regular downtime in Europe
 
Since when I played wow for years, tuesday morning all them time
oh... right... europe
 
Xeo
In Murica
anyways, sleepy time
 
1:06 AM
night @xeo
 
I don't think I can poop and floss at the same time
2
 
Xeo
Btw @refp: [v = g()]{ return std::accumulate(v.begin(), v.end()); }() making it even more similar to let-bindings
#define LET(vars) detail::call << [vars] // where operator<<(call_t, F) just calls the lambda
LET(v = g()){ return std::accumulat(v.begin(), v.end()); }; // :D
 
....
I just watched a water birth video
 
... Heh.
Heheheheheheheheheheeeeeeeeeeheheheheheheheheheheheheheheheheheheheheheheheh
 
Xeo
Oh crap
 
Watchya madlaughin' at
 
Clang is so much fun. (:
 
@ThePhD how's your date with the uk-ers? :p
 
1:26 AM
@Telkitty猫咪咪 Hasn't started yet.
 
Xeo
If only macros wouldn't stomp over anything and everything
 
@ThePhD keep us posted ... & pictures, a lot of pictures - pic or it didn't happen >_<
 
@Telkitty猫咪咪 For the picture, we'll all take off our shirts and jump into the air with the sunset behind us, and our shirts lasso-whipped above our heads.
 
@Xeo has anyone considered making a C++ templating engine for C++?
same thing as macros ... but it generates the files so you can debug it. e.g. generating C++ like you generate an html page / css
 
1:29 AM
C++ already has templates.
 
whatever fancies you, @ThePhD, whatever fancies you :p
 
@StackedCrooked read it again that's not what i mean
 
Don't tell me what to do!
 
Code generation adds to your problems.
 
1:30 AM
?
it's string replace
if it adds to your problems you really shouldn't be coding
 
@Telkitty猫咪咪 c:
 
lowering the number of programmers in here by entering!
So what should I watch, you guys?
 
Supernatural
 
Don't care for it
 
I should watch that show
 
1:43 AM
I've just started The Walking Dead
 
I have the first season on bluray, its nice :)
 
I've just started rebuilding Clang. =l
 
I love zombie movies/TV series. One of my friends asked me to watch world war Z with her because according to her I was the only one she knew who liked zombie movies >_<
 
ceilf florrf isnan modf huehueuehuheuheuhuee
@melak47 Are you still awake or did you die?
 
@ThePhD that sounds noisy
 
1:51 AM
-2
Q: How to create a dynamic array of class in C++

superI would like to know how to create a class array dynamically, I tried doing a class A{ public: int a; int b; } main(){ A *temp; temp[somevalue] = new (temp) } But the issue is I dont want to limit my array to somevalue I want to extend it, I thought of using std::vector a...

 
@EiyrioüvonKauyf Hahahaha CLEVER.
 
im baffled
 
SO VERY CLEVER.
 
Xeo
Dude, whatever you're taking, stop.
 
1:53 AM
;~;
q_q wtb using
template <typename T> using com_ptr = ptr<T, ReleaseIUnknown>; q____q
 
Xeo
Time for some noodles.
 
2:07 AM
Hm.
I don't know what to call this
TextDevice just sounds.... weird.
 
@ThePhD Bob.
 
Xeo
The new Microsoft Bob?
 
2:20 AM
You're both bad.
 
Exceptions are for interrupting the flow, not ~~exceptional situations~~
 
Morning.
 
while(1) { crowz c = new crowz() }
 
shit
wrong room
 
I think I make myself laugh way too hard when no one else finds me funny
 
2:26 AM
@CatPlusPlus exceptions are only used to crash in python
 
I'm not even going to dignify that with actual answer.
 
I cannot recall if I learned about Python exceptions.
 
you don't use exceptions for checking conditions; more like only exit conditions in python
EAFP
^
 
I feel the urge to make a snippet where "Lounge<C++>" compiles... although I am not sure if that is possible if C isn't an instance.
 
lol, that croissants question got reopened and closed again.
 
2:34 AM
Link?
 
65
Q: Find out who's going to buy the croissants

Florian MargaineAt our company, we have a rule: each one of us has to buy the croissants once in a while for everybody. Now we'd like to be a little more regular about this. And last friday, both of us bought the croissants, and some almost went to the bin because there were too many. Hopefully, I sacrificed ...

 
oh god that thing
 
Jul 3 at 6:11, by Mark Garcia
Can do Lounge<C++>: http://coliru.stacked-crooked.com/view?id=4eb30ae399fd05cb7a9cc5297c366073-0f11904895a20602a6e5ca9f4b5b0039
 
0
Q: No matching constructor for initalization of 'ostream_iterator<int>'

Best Waterfor the code, why error, osteam_iterator is a template class ,why no matching constructor for initalization of 'ostream_iterator', please give a help , thank you. int main(int argc, const char * argv[]) { vector<int> sentence1; sentence1.reserve(5);// 设置每次分配内存的大小 sentence1.push_back...

comments in chinese, thats a first (for me anyway)
 
I'm not sure why they mod closed it again. Unless they're trying to avoid a repeat of the socks question.
 
Xeo
2:36 AM
@Mysticial It's a bad question.
 
@MarkGarcia You can make templates with an instance?
 
Xeo
"Gimme algorithm."
 
@Pawnguy7 Just see the linked code. ;)
 
@Xeo So was the socks question. That one went through multiple close/reopen cycles, but the mods were (mostly) hands off.
 
Xeo
vOv
 
2:39 AM
Lol.
 
Actually, it seems that the mods were in favor of keeping the socks question open. But in the case of the croissants question, they're definitely in favor of closing it. They're very similar question types.
 
@MarkGarcia Given that, I assume yes. Can I also assume that it just takes the type, and the instance isn't really significant?
 
@Mysticial Andrew Barber wasn't a mod when that happened.
 
@Rapptz But mods talk behind our backs.
 
And we talk about the mods, not really that different.
 
2:41 AM
On these borderline cases, they usually discuss with themselves before one of them closes it.
 
BTW I think the question sucks.
 
@Pawnguy7 C in there is an instance/variable. It is of type dumb, which, when an instance of it is post-incremented (C++), returns an constexpr int which can be used in the template class Lounge. whew
 
At least the socks one was interesting
This one isn't.
 
So it isn't really unilateral, but we see it that way since only one of them will act.
 
Any link to the socks question?
 
Thanks.
 
@MarkGarcia Oh. That makes much more sense :D I guess it would probably help if I knew what constexpr did.
 
4
Q: Burn Programming Languages

ben is uǝq backwardsNot the languages themselves of course, just the tag, which has 3,672 posts attached and must be the most meta of meta tags. The excerpt reads: A programming language is an artificial language designed to express computations that can be performed by a machine, particularly a computer. I do...

 
@Rapptz wut
then we flame the OP!
 
lol
 
2:46 AM
Plenty of these in your big list mean something specific, and are useful for categorising questions. You need to explain why these questions are bad or why it's unhelpful to use these tags if you're going to suggest a blanket ban on using the word programming in a tag. This is extreme. — AndrewC 4 hours ago
lol +13 -10
 
Is it true downvotes are worth less than upvotes? (5:1, I think?)
 
upvote is +10, downvote is -2
downvotes also cost you -1 on answers.
 
Xeo
'cept on questions
 
What is it on questions?
 
nothing
 
2:50 AM
Makes sense, given what I have seen :D
 
they're free for quality control purposes I think
 
Ah. Found my boost asio question :D
I am just terrible with getting libraries to work.
 
@Pawnguy7 Don't waste your time getting libraries to work, make them do the work for you.
 
Ah. I remember this. I think I actually finished that project.
@MarkGarcia A good approach, if it worked :D anyway, at the time, I had never built a library. Not sure if I have tried since. I should learn, though.
If I were to learn networking a bit, and make a small LAN chat application.
Is that possible to test on a single machine?
 
Use VMs.
 
3:06 AM
Don't need VMs.
 
3:25 AM
I wish clang worked as a library. =[
 
@MarkGarcia Use VMS.
 
Wait a minute.
 
@ThePhD I will do no such thing!
 
If I have a derived class B, which privately inherits from A such that class B : private A { }; is the implementation,
inside of B, I can't do static_cast<A&>( *this ) ?
@JerryCoffin But... but it's important. ;~;
 
@JerryCoffin Searching for that gave me this: en.wikipedia.org/wiki/Virgin_MotherShip
 
3:41 AM
@ThePhD Have you tried it?
 
^ The c-style cast works in MSVC. The static_cast fails.
 
@MarkGarcia I had this in mind.
 
what's the error?
 
@JerryCoffin Oh. Hehe.
 
3:46 AM
@ThePhD try A& a = *static_cast<A*>(this);
 
The error doesn't make any goddamn sense.
 
I badly need generic lambdas. I hope the newest GCC release would include them.
 
since when does msvc implement c++ properly?
 
@ThePhD To actually give an answer: this is the one situation where you need a C-style case -- none of the new casts will convert (correctly) to an inaccessible base class. With single inheritance, you can usually get away with a reinterpret_cast, but with multiple bases, nothing but a C-style cast even has a hope of working correctly.
 
Oh. Well that'll explain the complaints of this weird template thingy then.
I was using a C-style cast before,
but then I was like "Oh, well maybe I should be ~~~proper~~~ and use a static_cast"
So much for being proper. UB ALL THE WAAAAAAAAAAAAAAAAAAAAY
 
3:48 AM
I thought dynamic_cast could go to any base
even sideways
 
@A.H. No -- dynamic_cast is really only for casting down a hierarchy. It'll work in a few other situations, but that's what it's really intended for.
 
Oh, wait.
It's erroring again. Maybe it has nothing to do with the static_cast at all. =[
Then why is it complaining about that arrgggh I don't understand MSVC y u torture me ;~;
 
@ThePhD Maybe your brace/parentheses balancing. Had that problem a while ago.
 
MSVC is probably trying to make sure it's a pain to port your code to another platform
 
@ThePhD To remind you to avoid casts in general.
 
3:53 AM
@JerryCoffin "Safely converts pointers and references to classes up, down, and sideways along the inheritance hierarchy." en.cppreference.com/w/cpp/language/dynamic_cast
 
-3
Q: Unlock "why not use tables" question

Abhi BeckertCan someone please unlock this question: Why not use tables for layout in HTML? It has 677 upvotes and 12 downvotes, giving an average of 665. Clearly it needs another upvote, but I can't because it's locked.

^^ lol
 
 error C2247: 'Furrovine::ReleaseIUnknown' not accessible because 'std::unique_ptr<T,Furrovine::ReleaseIUnknown>' uses 'private' to inherit from 'std::_Unique_ptr_base<_Ty,_Dx,true>'
1>          with
1>          [
1>              T=IDXGISwapChain
1>          ]
1>          and
1>          [
1>              _Ty=IDXGISwapChain
1>  ,            _Dx=Furrovine::ReleaseIUnknown
1>          ]
1>          deleters.decl.h(10) : see declaration of 'Furrovine::ReleaseIUnknown'
1>          graphicsdevice.decl.h(55) : see reference to class template instantiation
Oh. I should pastebin that.
 
Could be an implementation bug.
 
It looks like it. The point of error is apparently a typedef. ._.
typedef std::unique_ptr<T, ReleaseIUnknown> parent_type;
I'm inheriting from std::unique_ptr privately.
template <typename T, bool isarray = std::is_array<T>::value>
class com_ptr;

template <typename T>
class com_ptr<T, false> : private std::unique_ptr<T, ReleaseIUnknown> {
 
@A.H. It can cast "upward" if the base class is accessible -- but if the base is accessible, no explicit cast is needed at all. A sideways case is really an (implicit) upward conversion followed by a dynamic_cast converting back down to the sibling derived class. Bottom line: dynamic_cast is really for downward casts.
 
3:56 AM
All of this would be so much easier with template <typename T> using com_ptr = std::unique_ptr<T, ReleaseIUknown> ._____.
 
why does python seem to be the most generally accepted dynamic language by big C++, C fans?
 
I just don't get the VC++ Language/Compiler team sometimes. They could really make library developers and everyone else's time so much easier just by supporting some of these newer features.
 
@ThePhD Wait. Why would you inherit (privately) from std::unique_ptr?
 
You'd like they'd jump on the boat faster. =/
@MarkGarcia If I inherit publicly, I run the risk of the slicing problem.
Granted, there's nothing to delete on the derived class, so in most cases it would be okay, but the slicing problem could definitely come back to bite me if something went wrong.
 
There's also the "not slicing" problem, where you waste hours trying to get private inheritance working
 
3:58 AM
@ThePhD Well, I do not know your purpose of doing that, but I just find it weird to inherit from std::unique_ptr...
 
@doug65536 Indeed. I'm basically stuck.
 
God damnit I lost 50 rep cuz somebody deleted a question
 

« first day (1012 days earlier)      last day (3929 days later) »