« first day (946 days earlier)      last day (4003 days later) » 

yiz
7:01 AM
9 mins closing time is relatively slow
 
Okay
 
yiz
I don't understand why a question can be edited after it has been closed
 
What the bloody fuck.
My unique_ptr somehow changes itself
 
without me performing any operations on it.
 
7:02 AM
Next question.
 
=[
I hate you.
 
I don't know how you manage to do it, but you keep fucking up your own heap.
 
I'm not doing any UB!
ajdwadhwadkhawd
 
I had a program like yours one day
 
I quit.
 
7:03 AM
Where it ran fine in debug but crashed in release
Still didn't fix it
 
It's ind ebug right now!!!!!!!!!!!
AAAAAAAAAAAAAfhafwahdjwahjfafjksefjklsefjlsfe
Gg wp.
 
Xeo
@Rapptz Those are the worst
room topic changed to Lounge<C++>: ThePhD's mind finally went to UB-land. [c++] [c++11] [c++-faq] [no-helpdesk]
 
yiz
racing condition crash is the worst
 
@Xeo I think it was already there to begin with.
 
7:30 AM
@Xeo Wow, very conceptish!
 
@Xeo Wow that really does
 
Xeo
7:49 AM
For those interested, here's the C++Now 2013 schedule with slides for most of them.
 
Is there a way to sort a tag for highest voted answers?
 
ah yes that is probably the place ty
 
Xeo
Ugh, this guy talks about avoiding the God Object pattern, but advises singletons at the end...
And it seems he's a teacher. :(
 
Nice I starred it to be able find it later. Probably still hard to search for it though
in C#, 11 hours ago, by Tom W
these are awesome http://monstersofgrok.com/
 
8:05 AM
Just look under "advanced search"
I think after you see that you'll learn how to do it
 
@xeo even worse the guy appears to be a teacher :|
lol damn I gotta pay attention more to follow msgs...shit sneaks right in
follow up even....gotta love vicodin
 
Xeo
I was about to say... was wondering how long it'd take you :P
 
@Rapptz yes true
 
next time I twist my back up I ain't takin a damn thing. I called a pure virtual from a destructor today...and I still tried to make it work lol
 
BZ1
Hey everyone, I have a small c++ question I was wondering if anyone could help me with. It seems a bit to trivial to post as a question on SO, but can't work out what I'm doing wrong here :\
^also, I haven't used the chat rooms before, so not sure if this is the right place for asking for advice :S
 
8:12 AM
probably a good idea to read the wiki
 
BZ1
Ah, thanks for that @JohanLarsson. I'll try to work it out for myself and post a question on SO if I can't work it out. Cheers :)
 
I don't know any c++ so I can't help
 
Xeo
@BZ1 Don't forget that you can search SO too :P
Alright, off to D&D. Laterz
 
@zeo peace
 
BZ1
Yeah, I know @Xeo. Not turning up a lot of results though. Cheers
 
8:27 AM
??
I know the feelin
I've been on vicodin all day so I'm wellllll I'm gooood
 
Recreational use of vicodin?
 
yiz
Gosh my old sports bra actually caused bleeding, my t-shirt was brown at the back I did not even notice that during the half marathon this morning
 
I wish...I twisted my back up moving some stuff around the other day
doesn't mean I'm not going to enjoy it though lol
 
@BZ1 What is the q? asking even if I for sure don't know the answer :D
 
@yiz which marathon?
 
yiz
8:33 AM
@CaptainObvlious smhhalfmarathon.com.au
 
@yiz ah groovy.
oh sweet! Sea Hunt is on
 
8:45 AM
mawning
 
yo ho
 
HOHO's!
god I miss hoho's
I've lost all patience today... stackoverflow.com/questions/16632877/…
and today isn't even two hours old yet
 
yiz
My legs are really sore
 
I bet... do you have any marbles?
 
yiz
8:51 AM
How does that help? massage with marbles?
 
yup. throw em in a sock and go at it
 
yiz
Cool, will try ...
 
hard plastic beads actually work better if you prefer to heat them up
 
yiz
I have a few squash balls :D
speaking of which I have not played squash for ages
Currently no sports for me - still nursing my injured teeth from mountain biking a week ago
One of the reasons why I was so slow was probably because I have been on congee/soup diet for a week
2 shaken and 1 chipped teeth in a bracelet. I really should be more careful in the future
 
8:59 AM
ahhh some coffee
 
ohohohohho stack exchange as an API. neet-o
 
I have quick questions guys
 
BZ1
@JohanLarsson , I am converting malloc arrays to vectors and not 100% sure what the original code is doing. I think maybe I've worked it out by writing a small sample program, but I'll have to run my full code to see if I'm doing it right.
 
is it possible to install older version of GCC in cygwin setup?
and how do you check the gcc version from cygwin terminal?
 
gcc -v tells you the version
 
9:04 AM
I am currently using gcc 4.5.3 but how can I downgrade it to GCC 3? (From cygwin setup)
 
I wouldn't know
sorry
 
@xaxxon what kind of stupid lie is that? Please keep your "facts" to yourself if you clearly don't know jack about something. — rubenvb 43 secs ago
 
0
Q: How to downgrade GCC version on Cygwin?

TemporaryNickNameI am currently using Windows OS and I need to downgrade my GCC installed on Cygwin to GCC 3 from GCC 4.5.3 (gcc -v printed out this value to me). How can you do this in Cygwin setup window or the terminal?

 
Why do you want GCC 3?
 
9:11 AM
S&M party?
 
yiz
What are you implying? C++ developers like to torture themselves?
 
@TemporaryNickName Why
 
Nope...we like to torture .NET developers
BOOYAH! time for Soul Train!
 
@Rapptz I need to run a program but when I run it it gives me an error " C compiler cannot create executables"
And I suspect I get this error because it requires the lesser version GCC
 
9:22 AM
I actually have GCC 3 and GCC 4 both installed on cygwin, i just found it out
but how to change the current GCC, which is GCC 4 to GCC 3?
 
@TemporaryNickName Check your environment vars and paths
 
9:36 AM
@TonyTheLion Ahead of its time
 
hahah
 
9:47 AM
Guys
I have ported my question to Stackoverflow and updated it by explaining the problem percisely
0
Q: Change my current GCC version on Cygwin [configure: error: C compiler cannot create executables]

TemporaryNickNameI am currently using Windows OS and I need to downgrade my GCC installed on Cygwin to GCC 3 from GCC 4.5.3 (gcc -v printed out this value to me). I found out that, under lib -> gcc -> i686-pc-cygwin -> I have both gcc 3 and gcc 4 availabe, but how do you change my current GCC 4 to GCC 3 from Cy...

Please help me =D thank you
 
Don't link dump
 
Alright.
I found the "UB" in my code.
Are you guys ready to see some serious UB?
 
People in SO chat are aware of SO, strangely enough. There's no point in prodding them; those that are in the mood for answering will be watching questions.
 
	std::unique_ptr<ServiceProvider> services = new ServiceProvider( 64 );
	int p = 0;
	int* pp = &p;
	double d = 0;
	double* dp = &d;
	services->AddService( pp );
	// Uncommenting this line breaks the internals of the service provider.
	//ServiceProvider* s = services.get();
	services->AddService( dp );
^ There it is. std::unique_ptr.get() invokes UB.
HOW COOL IS THAT?
Fuck C++.
 
9:55 AM
I thought I had a reference to the MS extensions which listed calling the base class ctor directly but now I'm thinking it may have been in a bug report. Any ideas on it? stackoverflow.com/a/16633321/845568
 
Fuck C++ in its nasty dirty whore mouth.
 
mmmmm sure why not lol
face raping a language it not beyond me
 
The MINUTE I call .get(), all the contents of the internal std::unordered_map inside of services become garbage values.
 
Ell
@ThePhD Wuuuut
 
I don't fucking know, man
I don't even know how to approach this problem.
 
Ell
9:59 AM
What about ServiceProvider's ctor?
 
What the fuck am I supposed to do?
 
Ell
Maybe a problem in there?
And what platform are you on?
 
VC++, Windows, obviously
Where else would a unique_ptr::get() cause problems? ._.
 
Ell
haha
Use the debugger :P Get a backtrace
 
10:15 AM
Yup. compiler bug
 
yiz
anyone here good at perl?
 
and MS has no intention of fixing it anytime soon
assholes
 
10:26 AM
I cannot,
for the life of me,
figure out what is going wrong. =/
Question.
If you're a Room Owner, how do you bin things?
 
like this :)
 
Well I'll be damned
 
Yeah, but what's the command D:
 
@Dayalrai I have edited out your 'stupid lie' statement. I trust you won't be saying anything like that to anyone again, yes? — Andrew Barber 1 hour ago
 
go to the room link and then move messages
 
10:28 AM
room > move messages
then you click a start and an end
 
He can't even get my name right
@AndrewBarber actually that was me. And what is not a lie about "UNIX tools under windows aren't something to rely on for important stuff". This is spitting on the hard work of many individuals (I am not a MinGW(-w64) developer) that strive to maintain things like GCC for Windows. It's a downright insult and shows no respect whatesoever. — rubenvb 42 secs ago
 
ahahah
 
Uh it's C99
 
yeah
got that
 
10:33 AM
Meh.. I.. like the C++ one better.
It has a clickable table of contents.. this one doesn't seem to.
 
What?
Asking the C standard to have modern features?
Pffahahaha.
 
Its C, it doesn't need modern
it needs cross platform and low level
pointers galore
 
lol C cross-platform
 
I'm still eating the "std::unique_ptr::get() debug-erases the contents of your std::unordered_map", so...
 
Instead of ANSI C, they should have named it ASCII C.
 
10:36 AM
hahaha
 
I'm actually kind've considering managing my own pointers.
 
@ThePhD run, you fools
 
no
@ThePhD you're probably doing something wrong
Y U NO SHOW CODE?
 
I did show code.
 
where?
 
10:37 AM
Most of it that was relevant, anyways.
 
and everybody ran away from your code?
 
45 mins ago, by ThePhD
	std::unique_ptr<ServiceProvider> services = new ServiceProvider( 64 );
	int p = 0;
	int* pp = &p;
	double d = 0;
	double* dp = &d;
	services->AddService( pp );
	// Uncommenting this line breaks the internals of the service provider.
	//ServiceProvider* s = services.get();
	services->AddService( dp );
 
std::unique_ptr<ServiceProvider> services = new ServiceProvider( 64 ); that's invalid
 
Look, you, it works for the moment.
 
fix it
 
10:38 AM
std::unique_ptr<ServiceProvider> services( new ServiceProvider( 64 ) );
Alright, there.
 
it works - that's not good enough for C++
 
Happy?
 
yes
 
that attitude won't get you much help here
 
;~;
ServiceProvider is essentially: std::unordered_map<Type, any, TypeHash>
 
10:39 AM
//ServiceProvider* s = services.get();
why are you doing this?
 
I was isolating the problem.
I isolated the problem to whenever I call .get().
 
should I go to meta on this?
 
fuck meta
 
The mod edited out my perfectly true comment
 
how does ServiceProvider look like?
 
10:41 AM
@rubenvb Too much effort.
 
True.
But trolling meta
 
@rubenvb dude, I would get over it and move on
 
but but trolling meta
 
okay go troll meta
 
fighting the system dude
getting banned
 
10:42 AM
lol
 
upping my street cred count
 
you already have street cred in here
that's good enough
 
lol
 
Do I still have a link to my any somewhere...
 
yiz
Why meta made if not for trolling?
 
10:44 AM
I don't want to have to type it out or glue it together...
 
why don't you use boost::any?
 
I don't know why you stick with boost::any, your design is bad
 
=l
 
why any anyways
 
@rubenvb he is using it, and it's terrible
 
10:44 AM
ah
 
we told him that already
 
Searching for any
turns up nothing at all...
 
Is any a keyword?
 
use Google
 
10:45 AM
Is it querying a database?
 
how can any be a keyword?
 
For teh search bar in the SO chat
 
nope, not a keyword
 
does libc++ have a status page like libstdc++?
 
status: donno
this maybe? It has a "current status" section
 
10:47 AM
@Rapptz no. But it should be quite complete. Anything missing is a bug.
> libc++ is a 100% complete C++11 implementation on Apple's OS X.
 
meh, I don't like that
Have a status page anyway
 
ugh
 
so libc++ is Clang and libstdc++ is GCC?
 
yes
 
@TonyTheLion pretty much. But Clang can also use libstdc++.
 
10:48 AM
@rubenvb oh I see
 
I make Clang use libstdc++ on Windows.
 
Christ
I accidentally closed Coliru
There goes my SSCCE again =/
 
Although it seems libc++ can play nice with libsup++ which might be very interesting :)
@ThePhD reopen it.
 
I don't like Clang only because it only works properly on Mac OS X :(
 
10:49 AM
@rubenvb why don't they all use the same library?
 
i.e. libc++ :(
 
it's all Standard Cpp
 
licensing issues
 
@TonyTheLion license.
 
10:50 AM
libc++ assumes that sizeof(whchar_t) == 4 =\
 
All GCC stuff if GPL crap, all LLVM stuff is BSD-like.
 
right
because OSX is a BSD variant
 
@TonyTheLion not really.
OS <-> license.
 
@Rapptz It's okay on Linux.
 
<- Windows :(
 
10:51 AM
libc++ windows status:
Section failures / total sections: 104 / 1064 = 9.8% failures
Test failures / total number of tests: 292 / 4326 = 6.7% failures
 
<- Windows and Visual Cuntpunter
 
@melak47 that was me.
 
That also was quite hackish, and also, most failures are locale or thread related.
but basic stuff might just even work.
I really should try to get winpthreads to agree with libc++ again.
then I can try the libsupc++ thingie.
Maybe even get a great Clang package for 32-bit Windows.
 
@rubenvb That would be nice
 
10:55 AM
I would ditchVC++ happily for Clang.
... Oh.
 
But you wouldn't for GCC which is decently supported? wut
 
@Rapptz Clang could play better ball with DirectX.
Who knows?
 
GCC is tons better than Clang.
 
How would it?
 
@ThePhD what kind of bull is that?
 
yiz
10:55 AM
@ThePhD good luck migrating ... especially if your project is gigantic :x
 
31 secs ago, by ThePhD
@Rapptz Clang could play better ball with DirectX.
> could
> could
I'm not insulting anybody.
 
@ThePhD still, how could it?
 
Fuck if I know, man.
 
what could clang do.
 
I don't know! Fresh port of DirectX headers that can compile 64-bit and not miss D3DDevice calls?
Damn, I'm not an expert, just saying they might do it better. Dx
 
10:58 AM
@ThePhD have you checked MinGW-w64's WINE-imported headers?
they're loads better than the MinGW.org staleness.
 
@rubenvb No, are they working better than other stuff or something?
Oh
I haven't checked WINE
... Seems like an obvious place to look.
Time to check it out...
std::type_index ... isn't default-constructible.
... Who the fuck thought of this shit when they made it ._.
 
@rubenvb I think I tried them. Might have done it wrong of course :p but I was still missing types and crap ;_;
 

« first day (946 days earlier)      last day (4003 days later) »