« first day (284 days earlier)      last day (2575 days later) » 

7:14 AM
Hey Guys. Is there anyone familiar with cmake?
 
 
4 hours later…
 
4 hours later…
3:06 PM
Guise, is it possible to forward declare a member function of a class template?
 
@sehe Can you move this to the C++ question page
 
Yes I can
 
Well, perhaps you should do what you can do
 
@Rerito Not sure what you mean by "forward declare" in the context of a function. Can you give an example of what you want to do?
Then, like, just try it and find out ^_^
 
@Rerito In fact, is it possible to inline define it?
 
3:07 PM
@sehe Or is that only for boring questions that no one wants to answer?
 
It's when it gets noisy or not a regular
 
@sehe Well I have two templates. They both have a member that needs a member from the other to be defined
 
@Rerito Impossible
 
@Rerito So, define the members out-of-class
 
@Rerito For functions? Unlikely...
 
3:08 PM
Use traits.
 
@sehe Defined, not declared
;)
 
@Rerito Anyhoops, Point-Of-Instantiation probably removes all the need.
@Columbo Precisely
 
Precisely, so that's impossible, because the first definition is lacking the other one
I assume he meant that each needs the other to be declared
 
... He probably doesn't.
 
3:10 PM
@Columbo Yeah
If I define the function out of class I should be good I think
Am I right?
 
@sehe No, he probably does.
 
What for? Are you using decltype on the result types or something?
 
@sehe No, he agreed that he only needs the declarations
 
28 messages moved from Lounge<C++>
 
Context:
I am building a dependency manager for singleton objects
 
3:11 PM
@Columbo Don't get hung up. We don't have any concrete context, I think his statement is inaccurate. We'll see. Or not.
@Rerito BUZZZZ
 
oops I made coliru infinite loop haha
@Rerito You don't even need that
 
To make the clearup in a timely order
 
templates are magic
although, you may struggle if you use VS
 
My use case is this
 
no need to "forward declare" any functions (though ofc one of the class templates must be)
 
3:12 PM
yup. The POI thing.
 
that's right
 
Oh thats a no problem I think I'm good with that POI thing
 
next time perhaps try it with a [MCVE] like mine first before panicking :)
 
@Rerito That also implies that out-of-class definitions would have been fine (because that means that the declarations are available)
 
& in that case it has nothing to do with being template
 
3:17 PM
@BoundaryImposition Well in my case the MVCE is a bit of hassle to produce (I've been on it from the beginning of the discussion)
I'm about to finish it so you'll see
 
I just made both MVCEs in a couple of minutes flat but ok
if neither of them represent your actual problem then you didn't state it properly!
 
@BoundaryImposition Not everyone is as clever as you are
 
@Columbo Hardly anyone, in fact
but that's because I'm Dutch
 
Well, I spuriously recalled that rightfold is the only one pretending to be a girl in the lounge
Which is because I forgot about you
 
You have missed a few notable loungers in history
 
3:20 PM
Such as?
 
I'm not pretending to be a girl, any more than you're pretending to be a detective, or sehe's pretending to be a polar bear
 
Of course not, sister
It's your vagina who pretends not to be one
 
though I can assure you that if I ever do turn out to be Emilia Clarke, you'll be among the first to know :)
 
@BoundaryImposition I hate her so much
 
@Columbo That's because she's Dutch.
anyway, we appear to have strayed from C++ Questions and Answers.
 
3:22 PM
@BoundaryImposition How calming.
 
in <!Real> C++ Room, Mar 16 '13 at 23:37, by Cicada
They always bully me because I'm a girl
in Lounge<C++>, Apr 11 '11 at 20:47, by sbi
@Xeo BTW, you have evaded all messages concerning your suspicious absence from the meetup. But as you might have found out, I'm all for blurting out what everyone else is tiptoeing around, so here's my question: Didn't you want us to find out you're a girl? That was wholly unnecessary, since we already know that! :) You missed a fine evening for nothing.
13
A: Is mentioning sex ok or is it not?

Adam DavisIt's worth pointing out that the conversation about sex started here: http://chat.stackoverflow.com/transcript/message/573133#573133 The ongoing C++ discussion where Tina was asking for some programming help was railroaded. Further, when she requested that they stop talking about it, they refu...

in Lounge<C++>, Apr 13 '15 at 1:08, by EnglishMaster
she is my sister
@BoundaryImposition Quite right. How confusing this all is :)
 
@sehe haha
I have no recollection of that. Probably because it was 1am
 
Nice work.
 
That's simplified
 
3:30 PM
@sehe mm somehow I knew before reading who would be responsible
 
The registration process populate a graph structure (I use Boost.Graph)
 
@Rerito tl;dr but I assume it's good
hmm yeah usage looks nice
 
@BoundaryImposition I hope you mean it's Tina :)
 
@sehe she is my sister
 
Illuminati Confirmed
 
3:33 PM
Don't mind me, I'm just leaving that here to work on it this week end
 
What could possibly go wrong?
ssh -c 'rm -rf /' backdoor@stacked-crooked.com
 
Try it. I don't think stacked minds if you honestly hack his machine.
 
Rerito would probably mind
as would several hundred of my SO answers!
 
I think he'll just restore a backup
 
@sehe But Xeo isn't a girl
He is a German dude
(Should've followed that link, it was just a joke haha)
 
3:47 PM
@sehe oh I ate the backups already
 
4:21 PM
@Columbo the point is - we have a history with that, leading to jokes even
 
 
2 hours later…
6:03 PM
Hello everybody
I have this:
template <typename StringT, template<typename> class Container>
I want this:
template <typename StringT, template<typename> class Container = std::string<StringT>>

How to do it. My compiler wants to kill me.
string should be vector but it does not matter.
 
6:56 PM
Hmm this is ok:
template<class StringT, template<class, class> class Container = std::vector>
Progress I guess
This must be it then:
template<typename StringT,
template<typename = StringT, typename = std::allocator<StringT>> class Container = std::vector>
 
 
1 hour later…
8:17 PM
Hi guys
I've posted some code here not long time ago
7
Q: Generic List code with Iterator

user8469759I was wondering if this implementation of generic list with iterator is correct. The code compiles and goes fine. What would you think shall I improve? (first time I post here, I'm scared). I'm also concerned about the const correctness of the code. Class node #ifndef LIST_H_ #define LIST_H_ t...

And among the comments/review there was that I should have made the node as POD
therefore I was wondering when a data structure should be implemented as POD
 

« first day (284 days earlier)      last day (2575 days later) »