« first day (3386 days earlier)      last day (1545 days later) » 

3:26 AM
My hometown grabs the headline ... for the wrong reason.
Now a lot more people would know the city where I was born, because of this deadly virus.
 
 
7 hours later…
nwp
10:17 AM
I can't tell if TelKitty is trolling. Guess she is doing it right.
 
Much of Australia comes from the "surrouding" countries so it wouldn't be surprising
 
10:28 AM
Anybody remember if std::wstring's fill constructor includes the the zero terminator?
 
11:09 AM
11
A: C++ Convert string (or char*) to wstring (or wchar_t*)

Mark LakataHere's a way to combining string, wstring and mixed string constants to wstring. Use the wstringstream class. This does NOT work for multi-byte character encodings. This is just a dumb way of throwing away type safety and expanding 7 bit characters from std::string into the lower 7 bits of each ...

Lol, I like how the obvious thing doesn't work
In a microcosm of problems with C++, only real working solution is deprecated
222
A: C++ Convert string (or char*) to wstring (or wchar_t*)

Johann GerellAssuming that the input string in your example (おはよう) is a UTF-8 encoded (which it isn't, by the looks of it, but let's assume it is for the sake of this explanation :-)) representation of a Unicode string of your interest, then your problem can be fully solved with the standard library (C++11 an...

good work team
this library component should be retired to Annex D, along side , until a suitable replacement is standardized.
Meanwhile in Annex D
 
 
2 hours later…
1:23 PM
Don't spam support, google says. Don't have duplicate apps on google play, it says. Then google spammed me 4 times about two falsely accursed duplicate apps. The whole content could fit into 1 email. But nope, google sends 2 emails, one about each app, then duplicate the exact same email twice.
If google's A.I. was working correctly, I would have received no email. No spam at all.
 
 
1 hour later…
nwp
2:41 PM
Where is Community-hostile management in that list? (src)
 
percentage-wise that would barely show up anyway, the amount of people that care is miniscule to the "I just want my answer" contingent
 
why do people use fancy data structures?
 
@Permian because passing everything around as individual parameters is dumb?
 
why it is dumb?
 
because it's really really easy to make mistakes and miss something, it also creates a LOT of noise in function signatures?
 
2:55 PM
you don't build software one by one out of 20 line snippets, you have to build and maintain stuff for years
 
@Mgetz yeah i still dont really follow you
 
@Permian why do you pass a std::string when you could always just pass a "char*" + a length?
 
@PeterT haha i dont know
ive never considered the difference
 
3:21 PM
also if you have to pass 20 ints it is very easy to make a mistake, if on the other hand you pass 3 custom structs then you get the benefit of names and type checking
 
3:40 PM
Specially if the order of the ints change from one function to the other...
 
4:03 PM
@Vaillancourt even if it's not much... or you change one and the input is also an out variable... etc
 
4:18 PM
Yep. Parameter objects for the win :D
 
 
4 hours later…
8:06 PM
Also, one day we will have strong types in C++. Maybe 15% of my bugs are because of a lack of strong types.
 
There's a proposal to standardize some subset of SI unit type and it's already super difficult
 
Should be unrelated
I'm also going to be sad if we get std::metre instead of std::meter
 
I will be happy
 
Also how do we dump nonsense like currency types into std::money
 
This wouldn't be covered by the proposal
 
8:20 PM
And would be undefined behavior because you cant add stuff to std :-(
 
yo yo yo
 
 
2 hours later…
10:26 PM
Okay, so I have a DLL being called from an external program (LabView). The DLL needs to load assets. I can't figure out how to get the DLL to see the folder it lives in as part of the directory that it tries to find the assets.
So, is there some way to add a directory (the dlls location) to the relative path on Windows? So that if the dll has a function like load("file.rc") that path won't change.
 
10:50 PM
Also this question should be re-opened
0
Q: Get executable's path (with std::filesystem)

BarnackBefore i get marked as duplicate, all similar questions i could find have answers prior to the introduction of std::filesystem, and either use platform-specific code or Boost::filesystem. I'm looking for a portable answer that uses std::filesystem. Is it possible to get the path where a c++ ex...

 
user7659542
Hold my beer, I ll do it
 
you didn't do anything :-(
 
user7659542
Neither did you hold my beer
 
11:08 PM
Beer iz 4 da weak ~!
Telkitty> Hold my bear, I will do it
 

« first day (3386 days earlier)      last day (1545 days later) »