« first day (772 days earlier)      last day (4161 days later) » 

6:01 PM
Anyway, anyone who owns an engineering degree in France can just spam the hell out of every company on the internet and get an internship even if they can't even write a single line of code, so I'm sure they will find something anyway.
 
sbi
@Cicada That's all good and well and I'd applauded you had you managed that. Unfortunately, you ended up with spitting on them here in public while also drawing heavily drawing on your karma credit with me. :)
 
@sbi Implying I had any karma credit with you anyway :)
 
sbi
@Cicada Those who don't get a fish slapped over their heads pretty fast.
 
Does that mean I'll get a fish slapped on my head pretty soon?
 
@sbi Hmm...now that you mention it, Vienna is practically next door to Paris, right? :-)
 
sbi
6:04 PM
@Cicada Once you have your account on the karma credit bank overdrawn too badly, that's a very likely outcome, yes.
 
@sbi I'll keep that in mind. But please, please note that I did my best to not lie (and I didn't!). I even hinted at the truth in a totally non-subtle (at least for me) way. So don't take this attempt too bad, please.
 
sbi
@JerryCoffin I see what you did there, and it's not funny.
 
@sbi It made me smile!
 
And don't forget the exclamation marks!!! They can't really be quoted!!! Unless you use single quotes!!! :) — sehe 4 mins ago
^ lol at poster
 
sbi
@Cicada Nah, I already added a smiley here and there. It wasn't nice, but I understood you tried. Also, you are young enough that you should be allowed to fail at such attempts. I just didn't think it was fair to me, nor to them, and I felt like I had to point that out.
In other news, now every young man here (and there's many!) is jealous on me because the only girl in the room said "please, please" to me. :)
2
 
6:09 PM
@sbi The only girl ? I thought you were a 18yo chick.
 
sbi
@kbok Oh please! Did you really have to blurt this out publicly?
 
@sbi In all honesty, I knew from the very beginning that it would fail, and I knew exactly that what I was doing was very awkward (I said I had a shameless request, remember?). But I had to try anyway :)
 
@sbi It's still on the starboard :)
 
Any of you Germans going to the blowout bash?
 
Ell
I wish I could use using namespace in headers >.<
 
6:12 PM
> Posting a notice on your Facebook wall will not protect your privacy rights
No shit ?!?
Hacker News sometimes...
 
@Pubby WTF is that?
 
> Enjoy free food and drinks all night
@EtiennedeMartel Get a plane ticket to Germany, quick!
 
@Cicada DAmmit, I was going to joke about that but I guess I was too slow.
 
@R.MartinhoFernandes Now do the math on how much he has to eat to offset the plane cost.
 
6:18 PM
RSVP is a silly thing.
 
@R.MartinhoFernandes What is RSVP? Is it the same as in french?
 
Ell
@Cicada yeah
 
@Cicada yes, even though we don't know what it stands for
 
It stands for reserve vector of people
 
@Cicada Maybe I should become a groupie. I went all the way to Denver for the last one, maybe I should head on over to Berlin for this one. A stop in Brussels to pick up plenty of chocolate, and I'm pretty sure my wife would forgive my spending the mortgage money on a trip instead...
 
Ell
6:19 PM
@MooingDuck repetez s'ils vous plaits?
or something :L
or reply s'ils vous plaits
 
@Ell Répondez s'il vous plaît. (Please respond)
@R.MartinhoFernandes har har
 
And yet they use it to mean "please confirm your attendance".
 
@R.MartinhoFernandes That's what it means.
 
6:21 PM
lol
 
sbi
@balpha After-work parties aren't made for people with kids. Unlikely I'll find someone to get the small ones dinner and tuck them into bed.
 
Ell
what is wrong with reinterpret_cast<int>(&(data->data[0]))? where data is an std::array<unsigned char, 8>? compiler says "invalid types ‘<unresolved overloaded function type>[int]’ for array subscript"
 
Everything?
 
Ell
but int implicitly goes to std::size_type doesn't it? Apparently the type is std::array<unsigned char, 8ul> though o.O
 
data()
"unresolved overloaded function type" should have given you a hint.
 
6:26 PM
@sbi Did you really hinder my karma? For some reason I feel worried about it.
 
Ell
oops >.<
 
data[0]?
WTF.
 
Ell
@R.MartinhoFernandes why not? o.O
 
@Ell I mean, just data[0].
But then...
blah_blah_cast(data->data()) should do.
 
Ell
6:28 PM
oh right
 
But I have no idea what your are doing, and it is likely you are doing some UB thing.
 
Ell
yeah, it looks like it :L
 
sbi
@Cicada I am sure everybody sees this as a welcome change from your usual pertness. Why would I rob them of this moment by telling you it's alright? :)
 
Ell
I want to get an 8 byte long number from an std::array<unsigned char, 8>
 
sbi
@R.MartinhoFernandes There was a reinterpret_cast in there. Isn't that UB by definition?
 
6:30 PM
@Ell on what system is int 8 bytes? (Also: you forgot alignment)
 
@sbi this is evil. also, this smiley at the end of your sentence tells me how proud you are of what you just did!
 
Ell
@MooingDuck none I'm guessing?
where does it say how to do this properly? :P
 
@Ell none that I know of. long long is 8 bytes on many systems
 
@sbi Not always. Sometimes it's well-defined, sometimes implementation-defined, and sometimes you can do UB with it.
 
@Ell shifting and binary or is the safest way.
 
6:31 PM
@Ell How to do what? Why aren't you storing an int or long or long long, or better yet uint64_t instead of an array?
memcpy is the best.
 
@R.MartinhoFernandes oh, yeah, that.
 
Unless the representation is not from this machine.
 
@MooingDuck Binary ops is fine.
 
Ell
@R.MartinhoFernandes well I get it from network
 
@Ell Then use shifts.
@Cicada WTF
 
6:33 PM
twas a pun
 
Ell
@R.MartinhoFernandes and shift what? an array of bytes?
 
sbi
@Cicada Ah, back to being your own self, are you? Too bad, because that you would never even consider that, maybe, the smiley tells you to not to worry all that much. :-/
 
@Ell Shift each byte a different amount of bits.
 
@sbi Maybe I would.
 
0, 8, 16, 24, ..., 56
 
6:35 PM
@Ell long long x = byte1 << 56 | byte2 << 48 | byte3 << 40 | byte4 << 32 ...
 
@Cicada Don't worry, she is uglier than you.
 
@R.MartinhoFernandes What.
 
Now seems like a good time for std::uint64_t (if you need to convert that to signed though don't ask me).
 
4 hours ago, by sbi
@R.MartinhoFernandes That's because, actually, I am a 18yo girl.
 
@R.MartinhoFernandes Oh right.
 
6:36 PM
At least you can be fixed with makeup.
 
sbi has too many kids to be 18
3
 
(Was that too much?)
 
@R.MartinhoFernandes Thank you. Can you be?
 
@Cicada No makeup needed. Just switch the outer panels.
 
sbi
@Cicada For robots, it's called paint, not makeup.
@Pubby I started out early. :)
 
6:38 PM
@sbi Some women call it "war paint" too though...
 
@Pubby You think? Anyone with sufficient determination can do much more in less time :)
 
@LuchianGrigore Didn't you say repwhoring was easy on the west coast?
 
@Mysticial I was wrong.
Or maybe I just work more here :)
 
Ell
in fact, I only need a regular int, so std::uint32_t I guess?
 
Am I the only one to find it much harder to answer good questions lately?
 
6:39 PM
So I must've been pretty crazy to get my 60-day repcap streak this time last year. :)
 
@Ell int is signed though.
 
@Cicada A set of sextuplets, and you're well on your way in only 9 months!
 
sbi
@JerryCoffin Yeah, some have a paintshop. Me, I have always preferred women who used nothing at all. (Although in my age those become increasingly harder to come by. :-/)
 
Ell
@Cicada sorry, my mistake I meant int32_t
 
@sbi You think those are easier to find when they are younger?
 
6:40 PM
Nah, it's easy for a man to have a lot of kids by 18. It's harder for a woman though.
 
4 hours ago, by sbi
@R.MartinhoFernandes That's because, actually, I am a 18yo girl.
 
sbi
@R.MartinhoFernandes Of course! My 5yo girl never wears makeup, for example.
 
@Mysticial Notice the last word. @Pubby's conclusion makes total sense.
 
@R.MartinhoFernandes haha... missed that :)
 
@sbi I'd rather not reply to that.
 
sbi
6:41 PM
@R.MartinhoFernandes You just did, though.
 
Butterflies.
 
sbi
:b
 
Oh, a parrot.
 
@sbi I generally agree, though I've seen some who really did look nice in makeup too.
 
@JerryCoffin Not wearing makeup is (imo) a lack of care for yourself.
 
sbi
6:43 PM
Damn, compiler error messages can drive you up the wall when doing expression templates! So far, I found out a solution for everything the damn compiler threw at me, but I've been stumped on this one for more than 10mins.
 
sbi
@Cicada That's bovine excrements.
 
Wow, I didn't know that's what they made it out of.
 
sbi
@R.MartinhoFernandes It's VC here, but maybe I should GCC a try. It will have to compile with GCC later anyway.
@R.MartinhoFernandes Have you had your olfactory sensors checked, lately?
 
Why?
What does "MT" mean on twitter?
 
6:47 PM
@sbi It's not. I'm not saying you should pour an entire pot of makeup. But not putting any is showing how much you don't care about yourself. Just my opinion ofc.
 
@Cicada Now I feel so ashamed -- I must not care for myself at all! :-)
 
I'm talking about girls, duh!
 
@Cicada Oh, I see. I don't wear any girls either though!
 
@Cicada Well, now that was a worthwhile thread. What a cute little furball!
 
sbi
6:51 PM
@Cicada And my opinion differs. You can care for yourself a lot, and yet consciously decide that you do not want to change anything. One of the most beautiful (note: not "pretty") women I ever had the privilege to be loved by is now way past forty and TTBOMK has (aside from experiments as a teenager) never put on any makeup at all. And to say that she doesn't care about her appearance is utter bullshit.
 
@Cicada Would I need to learn German? Because that's not something I really want to do.
 
How do you know if she cares about her appearance: is she a woman?
@EtiennedeMartel Hey, I don't, and I am going.
 
@EtiennedeMartel I don't think so. Besides I'm pretty sure they all speak english (they're from SO)
@sbi Different ages, different behaviors and tastes, I suppose.
 
@EtiennedeMartel If you stuff your mouth full of food then you won't need to talk anyways
 
Fuck, I still need to renew my passport.
 
sbi
6:53 PM
@Cicada My preference regarding this hasn't changed in almost 30 years, though.
 
@sbi I didn't know you were that old.
 
@EtiennedeMartel No need -- they may spell "beer" differently, but it sounds pretty much the same.
 
Ell
@JerryCoffin this depends on endianness, right?
 
@Ell Yes.
 
sbi
@EtiennedeMartel Get a grip! It's an event for SO-regulars, so you can expect a decent mastery of at least written English, so the worst would be you have to write/type the conversation.
 
6:55 PM
@EtiennedeMartel Hey, I didn't, and I am going :P
Oh, water boiling in the kitchen. Damn. Afk.
 
@sbi That would be hilarious.
 
@sbi Not to mention that at least in my experience, Germans speaking English are generally easier for North Americans to understand than English people speaking English.
 
sbi
@JerryCoffin Incidentally, most Germans feel the same.
 
FWIW, I haven't heard "ze" yet.
 
@sbi Why would Germans speak English to each other? Or did you mean Germans find North Americans easier to understand than Brits?
 
6:59 PM
It appears only French use that abomination.
 
You mean only ze French use that abomination.
 
@R.MartinhoFernandes Let me sing you ze song of my people.
2
 
sbi
@R.MartinhoFernandes Mhmm. You did answer Xeo, though, so I assumed you heard him. :)
 
Which is weird, since German makes a lot more use of the /z/ phoneme.
@sbi I didn't notice him using that thing.
And don't say I was drunk!
 
sbi
@R.MartinhoFernandes Whatever that thing is, he's not using "th" very much-
 
7:01 PM
@R.MartinhoFernandes You're European. And in Germany.
 
sbi
@R.MartinhoFernandes I don't say you were drunk.
 
@R.MartinhoFernandes For real fun, try visiting Strasbourg.
 
@sbi I heard the French saying it. I know what a "ze" is. Whatever Xeo uses, is not "ze".
 
@R.MartinhoFernandes Yep. It's like being stabbed in the ear with a cattle prod.
 
guys quick question
 
sbi
7:02 PM
Damn, GCC is giving me a completely different error message that I can't make sense of either.
 
About how big, in pixels, would a life sized head be?
(two dimensional)
 
@Crowz At what level of detail?
 
@sbi wasn't that why you used it?
 
@Crowz depends on the PPI of the display?!
 
7:03 PM
@JerryCoffin What do you mean? I just want to print a picture out near life size
 
@Crowz a pixel is not an actual measurement
 
@Crowz A pixel is not a measurement of length.
 
@R.MartinhoFernandes Okay... then I guess I need a ruler
 
@Crowz printing is different, since that has measurable quantities.
 
sbi
Now you're all speaking to a ghost.
 
7:04 PM
@EtiennedeMartel Just like people who misplace the tonic accent in spanish.
 
@Crowz on a 300x400 monitor, about 300x400. On a 1600x2000, about 1600x2000 pixels
 
@sbi Nice try. I'd help if I could, but sadly I do not know C++.
 
sbi
@MooingDuck Not really. I was using it in order to gain understanding, not to increase my frustration.
 
@Cicada I never heard anyone but Spanish speaking Spanish, but I heard Brits speaking Portuguese and they do that often.
 
13 inches I guess is close enough
 
7:06 PM
@Crowz For printing, you normally want about 200-300 DPI. Life-size is around 8x10 to 8x12 inches, so something like 2400x3600.
 
cpx
Oh, Is this really int __builtin_cast_f2i(float x) a cast in either C or C++?
 
That looks like a compiler extension.
 
@JerryCoffin Yeah I got 13 inches right now, but that's from the collarbone to a little over the top of the head
 
@R.MartinhoFernandes I've heard french "speak" spanish with misplaced or lacking accents. It's horrible. I'm pretty sure it's the same in Portuguese.
 
cpx
I found it in here. It says treats float as int.
 
Ell
7:07 PM
@Crowz theres gotta be a joke somewhere xD
 
@Cicada Yes, it is.
 
@cpx I found it here
 
sbi
@Cicada ???
 
cpx
There aren't many google results on that.
 
@cpx actually, I searched more, it's part of the SGI C compiler. (I didn't know they had a compiler.)
 
7:09 PM
@sbi Weird, maybe he's on your plonk list?
 
sbi
@Cicada Of course he is.
 
@MooingDuck "The following table lists the built-in functions available in the SGI C compiler, along with a short description."
 
@Cicada I saw .edu and went looking for the actual compiler. Never even looked at his page
 
@MooingDuck I don't even know what to say.
 
@Cicada Well, @sbi is the Master Plonker.
 
7:11 PM
@Cicada I'm a moron, and am still not sure why people listen to me :/ (That's me, not what you should say)
 
@MooingDuck You're some very clever moron, you know.
 
How's married life, btw?
Same shit, but with a ring?
 
@EtiennedeMartel Then I need to get the achievement "plonked by @sbi"
 
cpx
@MooingDuck Is there an example to use the cast?
 
@Cicada That isn't a big achievement.
Every lowlife in this chat has it.
 
7:13 PM
@MooingDuck People listen to you? :P
 
"unplonked by sbi" is an achievement
2
 
@R.MartinhoFernandes How do I become a lowlife then.
 
well, first, you sink to the bottom of the Mariana Trench
then you stay alive
 
Ell
hm. What could this mean?: /tasks/auth.asp?guid={B8EBB309-75CB-4509-86CB-CD1C758FEF0C}
 
@Ell Any-fucking-thing.
 
7:14 PM
@R.MartinhoFernandes Wait a minute. Are you trying to deprive me of even the minimal honor of my status as a lowlife?
 
@Ell Pass the salt.
 
@JerryCoffin Sorry. I can see the "not exactly high" life, but you're really not low enough to be a lowlife.
 
Ell
ahh bingo! I have something useful &authCode=94161
 
@Cicada That would be too easy. Try getting plonked by @MooingDuck. Now that's something.
 
@R.MartinhoFernandes me? Yes.
@cpx not that I've sen
@DeadMG I know, right?
 
@EtiennedeMartel I plonked someone once. For about an hour.
 
@MooingDuck once? woa.
Told ya.
You're too nice.
 
@DeadMG Darn -- well, another fond dream down the drain I guess!
 
You probably give your underwear to homeless people.
 
@EtiennedeMartel Before using it!
 
7:18 PM
@R.MartinhoFernandes you're a robot, you don't need an external plonk-list
 
You took a screenshot and cropped it just to show us your ignore list?
 
I've plonked 40 people
2
 
It's easy then, to get on puppies plonk list
 
are you kidding? only 40?
that's nothing
 
Jun 6 at 22:43, by DeadMG
lesson: never take anyone off your ignore list, they only go there for good reason
 
7:20 PM
@TonyTheLion Yep.
So, in short: nice people don't plonk.
 
sbi
@DeadMG That's about 15 times as many as I have.
 
where do you see the plonk list?
 
The problem with plonking people is that it makes it harder to counter-troll when the situation calls for it.
 
@DeadMG that makes you a plonker :P
 
@Pubby I have a screenshot cropping tool.
 
7:21 PM
there would be way more people there
if I plonked everyfucker who dumped his question
rather than just downvoting them
or being horrible to them until they leave the room
 
seems like I'm a plonker too, I've got 21 people on my plonk list currently
 
sbi
So can anybody tell me why template<typename T, typename Tuple> blah operator<<(const expression<Tuple>& x, const T& obj) is "no matching function for call to operator<<(expression<std::tuple<const int*> >&, int)"?
3
 
@TonyTheLion user profile, "prefs" tab
 
@sbi You only have three?
 
@Abyx yes found it
 
7:23 PM
@sbi b'coz of const
 
sbi
Who stars a template error message? Have you all gone bonkers here?
 
@sbi Who starred this?
 
@sbi Guess?
 
sbi
@R.MartinhoFernandes What are you asking me for? I can't.
 
@sbi Did you put it somewhere ADL would find it?
 
7:23 PM
@sbi How do you call it?
 
@sbi they've gone plonkers, obviously :P
 
sbi
@Abyx What's because of const?
@DeadMG Global namespace.
 
hmm
 
@sbi See, I starred it so that people would get interested. It worked. No need to thank me.
 
sbi
@R.MartinhoFernandes Desperately.
 
7:24 PM
@sbi The most common cause is needing to put it in namespace std (technically not allowed, but rarely a problem anyway).
 
checked for "I had a Tony moment", like forgot to include it, bad preprocessor macro, etc?
2
 
@sbi nvm... make a SSSCCEE (not sure about S, C and E count)
 
operator<< <int>(x, 42); Wait, what?
 
@DeadMG WTF? What have I missed?!
 
7:25 PM
<--- Having a Tony moment
 
sbi
@R.MartinhoFernandes Well, GCC gave a non-descriptive error message for x << 42, so I changed that.
 
You can do that?
 
sbi
@Abyx I just linked to it. It's pretty big, though.
@R.MartinhoFernandes What can I do? Changing code?! Of course, I can! Can't you?
 
Btw, if you use GCC 4.6+ you get better error messages.
 
SFINAE
your return type has a dependent parameter in it
 
7:27 PM
@R.MartinhoFernandes Or just clang.
 
sbi
@R.MartinhoFernandes On ideone?
 
Like, all the three thousand overloads of operator<< that were not found.
 
if you didn't provide that then it'll SFINAE out.
 
sbi
@DeadMG Ah, you're right! Thanks.
 
If SFINAE is causing errors then it is just SFIAE
3
 
7:29 PM
@sbi Nah.
You can't pick it there.
 
sbi
Ok, so that concat_tuple_type vehicle failed. Any idea how to construct the type of a tuple consisting of T followed by another tuple? That is, the result of concat_tuple(const T& obj, const Tuple& tuple).
 
what, like, tuple<T, tuple<X, tuple<Y>>>?
 
sbi
@DeadMG Does that work?
 
Not nicely.
 
Xeo
Really, I think you're out of luck with TR1 tuples.
 
7:31 PM
How does the TR1 tuple work?
 
sbi
Badly?
 
With maximum size and defaulted parameters?
 
@R.MartinhoFernandes Does it?
 
Xeo
How about "not"?
@R.MartinhoFernandes How else could it?
 
sbi
@R.MartinhoFernandes Yeah, how else?
 
7:32 PM
Oh, nevermind.
 
@sbi It should do.
you're better off with a typelist in C++03
 
You can do it with a thousand overloads.
 
sbi
@DeadMG Yeah, but it's not the same as tuple<T, X, Y>.
 
Xeo
@R.MartinhoFernandes Might aswell write your own tuples then.
 
indeed
 
7:33 PM
@Xeo How? With a thousand overloads?
Isn't it a thousand overloads either way?
 
Xeo
With head/tail-style
 
And a thousand macros?
 
sbi
@DeadMG I need actual objects, not just types. (@R.Martinho can grep the underlying library at his workplace for ObjectList and will find one of my implementations of such a beast.)
@R.MartinhoFernandes How? (I suppose half a dozen parameters should be enough.)
 
Really, when the problem is "don't have variadic templates", the solution will invariably involve "a thousand things by hand".
 
sbi
@R.MartinhoFernandes You know, I know exactly how to do that. As I said, I implemented it several times. All I am lacking is a way to do it with std::tr1::tuple. So please don't answer with speech bubbles.
 
7:36 PM
template< typename T, class T1, class T2>
typename concat_tuple_type<const T*,Tuple>::result_type concat_tuple(const T& obj, const std::tuple<T1, T2>& tuple)
{
        typedef typename concat_tuple_type<const T*, Tuple>::result_type
                                                                result_type;
        result_type result( obj, get<0>(tuple), get<1>(tuple));
}
@sbi Like this, and then one for each other size.
 
sbi
@R.MartinhoFernandes Oh.
 
I forgot the result type.
 
sbi
That looks painful, but it would be Ok for half a dozen arguments.
@R.MartinhoFernandes Yeah, I saw that. I got the idea nevertheless, though.
Oh wait! There's a std::tr1::make_tuple(), IIRC! How do they do it?
 
@sbi With a thousand overloads!
 
sbi
@R.MartinhoFernandes Declaring the return type, dammit!
 
7:39 PM
Variadic templates is "a thousand overloads" in a package.
@sbi make_tuple takes N elements to make an N-tuple.
 
sbi
Ugh.
 
it won't concat a tuple
 
sbi
template<_GLIBCXX_TEMPLATE_PARAMS>
  typename __stripped_tuple_type<_GLIBCXX_TEMPLATE_ARGS>::__type
  inline make_tuple(_GLIBCXX_PARAMS)
  {
 
unless you manually unpack each element
 
sbi
Not sure what to make of that.
 
7:40 PM
@sbi It's macro machinery to make a thousand overloads.
 
Xeo
@sbi stripped likely means "decayed"
 
@sbi Same as MSVC's Xmacro-based hackery
 
Xeo
Or did you mean the macro variadics?
 
Time for some Boost.PP up in there!
 
sbi
@DeadMG Yeah, I saw that several times today. Looked at it like a pig might look at a clockwork.
 
7:41 PM
lol
 
sbi
@LucDanton Sigh. No boost here. I pestered Björn about it today, and we might tackle this in December.
 
Xeo
Emulate Boost.PP to emulate variadic templates to emulate true tuples!
3
 
@sbi Tbh I figured as much, otherwise you'd be using Boost.Tuple.
 
Tuples get talked about a lot here. I'm beginning to think they're not worth it.
 
@Pubby Don't worry, you will see a lot of tuple misuse in the future.
I have seen people trying to treat tuples as a replacement for structs.
 
Xeo
7:44 PM
@Pubby As long as you have proper support for them, they're nice.
 
sbi
@Xeo Dammit, this started as a "let's spend half a day on this to see whether this brings a lot of runtime optimization" project, and it's now 20:45, and I'm still in the experimental phase!
 
The sooner you face the fact that you need to write a thousand things, the sooner you will be done writing those thousand things.
 
Xeo
Or writing the macro implementation to generate those thousand things!
 
sbi
@R.MartinhoFernandes All I need to write is yet another home-grown tuple implementation. I don't want to, though.
 
Xeo
Btw @sbi, why not extract Boost.PP and just use that?
 
7:46 PM
@sbi That will involve a thousand things anyway. Even if it is just the macros for ease of declaring such tuples.
 
Xeo
It should work fine and be relatively isolated.
 
sbi
@R.MartinhoFernandes But I have that code already! All I'd need to do is to adapt it.
 
    static double const (&logR2)[37]    = detail::logR2();      // double const logR2[37]
^ Is that static necessary in a header file?
 
@Cheersandhth.-Alf that creates a variable that's static to the TU, not a member of any sort, right?
 
Xeo
I think so, otherwise you get ODR problems. If it's static, it has internal linkage.
 
7:50 PM
yes, but my question is, will i get that anyway?
 
Xeo
@Cheersandhth.-Alf You mean any other way?
Unnamed namespace should work.
 
@Cheersandhth.-Alf What scope are we talking about?
 
i mean without static. it's kinda const stuff. but the reference itself is... hm...
 
@Cheersandhth.-Alf I think static globals shouldn't be in a header in the first place.
 
Xeo
Question: Why not leave it as a logR2 function (that is not hidden in a detail namespace)?
 
7:51 PM
@MooingDuck many headers provide constants. it's about the only way to provide them ;-)
 
@Cheersandhth.-Alf you need a constant global that's a reference to an array in multiple TUs? Why is it static then?
 
@Xeo well the only purpose of the function is to circumvent ODR rule for the array. so i'm thinking, an array it is, an array it should be presented as.
@R.MartinhoFernandes it's in namespace scope
 
actually, nevermind, I clearly don't understand what's going on here. I back out.
 
Xeo
Eh, and now you have the ODR problem for the reference to the array...
 
Xeo
7:53 PM
That helps much, really.
just stuff it in an unnamed namespace
 
In a header?
 
Xeo
Sure, if it's constant, it's not like it's gonna matter which one you reference, right?
 
Ell
wooop finally "hacked" mymaths.co.uk!
 
What?
Alcohol isn't the answer, but beer is a solution.
 
@R.MartinhoFernandes A MILLION TIMES YES
 
7:54 PM
> except that a name can refer to a const object with internal or no linkage if [...]
Out of luck
 
@EtiennedeMartel It's a pun.
 
@R.MartinhoFernandes Alcohol is not the answer. Alcohol is the question -- and yes is the answer!
 
(And, I know it's a pun. It's the message I'm agreeing with)
 
@EtiennedeMartel I am not surprised.
 
sbi
> Alcohol is never the answer, unless the question is, "Why were you having sex on your neighbor's kid's trampoline at 3am?" — @Schmoodles
 
sbi
> I honestly don't remember eating any of this stuff floating in my toilet. — Steven Hall
 

« first day (772 days earlier)      last day (4161 days later) »