« first day (1285 days earlier)      last day (3648 days later) » 

12:00 PM
@rightfold ;p
maybe they tightly integrated the Metro API or something
 
@LightnessRacesinOrbit You'd want VS2013 Express for Windows Desktop, not the normal one.
The normal one only makes Metro apps.
And maybe .NET stuff.
Ah no, just "compelling, innovative Windows Store apps".
 
JBL
@rubenvb Sounds like it can turn crappy code and silly ideas into something "Compelling and innovative".
 
@JBL Have you checked out the Windows Store?
 
JBL
@rubenvb A few times.
 
12:03 PM
@JBL boldly take your business forward
 
JBL
Mostly when I needed to install 8.1.
 
So what do you think of Design Patterns? Do they add value or more obscurity? http://www.infoq.com/articles/design-patterns-magic-or-myth
Yay - a study after design pattern appreciation
 
user1804599
What I think of design patterns? That they may occur naturally but are not really worth putting time into!
 
@LightnessRacesinOrbit I've found it: meta.stackoverflow.com/questions/251455/… :D
 
user1804599
@BartoszKP Eww, people being able to delete without other deletion votes.
 
user1804599
12:06 PM
Democrazy is nice.
 
two-edged sword I guess
 
oh for fucks sake. just rushed into writing this
0
A: Remove an element from a vector by value - C++

Lightness Races in OrbitIf occurrences are unique, then you should be using std::set<T>, not std::vector<T>. This has the added benefit of an erase member function, which does what you want. See how using the correct container for the job provides you with more expressive tools? #include <set> #include <iostream> in...

then spotted that the question is 2½ years old
 
I see so many good answers been either wrongly flagged or deleted that I simply do not know if those "expert" is actually experts at all and how did they get so many points that one should spent day by day to opening and answering questions without launch break -- even then it would not be enough.. — All Blond yesterday
awesome
 
user1804599
@sehe That tag is very reasonable.
 
12:08 PM
it's the "launch break" that makes it art
 
user1804599
Direct democracy or no democracy.
 
user1804599
Representative democracy is democrazy.
 
@BartoszKP :)
@sehe nice
@rightfold nice
 
@LightnessRacesinOrbit a launch break: img.gawkerassets.com/img/18pp7ks88gh7lgif/k-bigpic.gif
 
user1804599
12:11 PM
% echo hello | gawk erassets
%
 
> <BODY BGCOLOR="#FFFFFF">
> <font size="-2" face="VERDANA, ARIAL, HELVETICA, SANS-SERIF">
oh my
also
> SpaceX's commercial Dragon supply ship thundered into orbit Friday to begin a two-day pursuit of the International Space Station, setting up the delivery of 2.4 tons of fresh supplies and experimental cargo to the 450-ton research complex Sunday.
Does anyone else think that "Sunday" is a fucking stupid name for a 450-ton research complex?
 
Xeo
Err
 
JBL
Meh
 
user1804599
@LightnessRacesinOrbit Hey, that's similar to what everybody does nowadays!
 
Thou shall not research on Sunday
 
user1804599
12:13 PM
> <div class='col-lg-6'>
 
@LightnessRacesinOrbit Saywut?
 
 
Xeo
@LightnessRacesinOrbit That's not the name, is it? It's just the time of arrival. Or are you trolling again?
 
user1804599
@LightnessRacesinOrbit still, one of the best web designs in the world.
 
Direction: Sun
Distance: 1 light-day
 
Xeo
12:14 PM
(If it is the time of arrival, 'on Sunday' would've been clearer)
 
@rightfold It is?
@Xeo I'm drawing attention to a pet hate.
> While the first stage's return maneuvers garnered much attention during a post-flight press conference Friday, the mission's primary goal is to resupply the space station, reinforcing the orbiting outpost's dwindling food inventory and delivering fresh experiments for researchers.
 
Xeo
Right.
 
user1804599
People still mix content and presentation all the time!
 
Gotta wonder what is so special about a "press conference Friday". some strange variant of a normal press conference
@rightfold They don't often do it in -2pt font
 
isn't Friday stupid name for a conference?
 
12:15 PM
@Xeo Americans drop the "on" before days in news articles especially, and it fucking winds me up
@BartoszKP it is :(
 
@LightnessRacesinOrbit On a Friday, hardly anyone shows up.
 
user1804599
@LightnessRacesinOrbit :P
 
IRC quote from about 50 years ago:
> (17:48:40) (~tomalak16) "In a major boost to its survival prospects, the UPN network reached a multiyear agreement Wednesday to keep nine Fox-owned stations in major cities as UPN affiliates." <--- is there a particular reason that American reporters can no longer use prepositions in front of day names?
> (17:50:17) (@Youkai) Maybe it's a multiyear Wednesday when they all agree
etc etc
 
user1804599
> I hereby declare that henceforth this Saturday shall be known as Fry-day!
 
Two choices for the reptiles: go to a boring press conference on 'take out the trash' day, or go to the bar and make something up.
 
12:17 PM
"Fifteen people enjoyed bacon and egg during the Fry-day Friday"
@MartinJames I love that show
 
user1804599
@LightnessRacesinOrbit lol IRC 50 years ago.
 
@LightnessRacesinOrbit Yeah:)
 
@rightfold but not lol Tomalak on a computer 50 years ago?
 
gtg back to work :V
 
JBL
We all know you were already repwhoring on SO 50 years ago.
 
user1804599
12:18 PM
@LightnessRacesinOrbit you are so mature and sexy that I couldn't really tell.
 
user1804599
Oh wait, you were 16 back then. How can I be so stupid!
 
@LightnessRacesinOrbit They know that.
 
Ok, I think I should stop searching for "launch" gifs now :) ushanka.us/blog/images/NKlaunch4.11.13.gif
 
Is there any debugger with a breakpoint ordering mechanism?
 
What does that mean? Sorting the listview? Or enabling breakpoints after another has been hit?
 
12:23 PM
I.e. there's a bunch of breakpoints that I only want to be hit once another one is.
 
Yeah. That'd be great.
 
user1804599
@sehe favicon lol
 
Why are all debuggers primitive as fuck.
 
@rightfold wouldn't browsers do that if the url points to an image resource anyways?
@R.MartinhoFernandes because software needs to get better!
 
user1804599
@sehe lolwat
 
user1804599
12:24 PM
They display /favicon.ico unless the page specifies an icon through a meta tag.
 
user1804599
And images don't so they use /favicon.ico.
 
user1804599
Maybe your browser is different and shows the image itself, though.
 
It does, indeed. I thought this was the "lol" part
 
user1804599
What obscure browser do you use? Opera?
 
Doesn't even one box.
 
Xeo
12:26 PM
1
A: Can I use variadic templates in a lambda?

LoghornNo, you cannot. You can (in C++14) declare kind of template lambda function using auto for arguments type, but there is no way to make variadic lambda.

wat
 
@rightfold To be honest, makes perfect sense. An image is not a web page, let alone site
 
user1804599
@Xeo Windows Loghorn.
 
user1804599
 
Xeo
Also, Clang is awesome for having generic lambdas, full return type deduction and generalised lambda captures.
Otherwise that little lambda-stream thing would've been a pain
 
Is the historical debugger functionality in VS available for native code?
Why do I ask.
> Not supported: C++, other languages, and script
VC++ truly is a bastard child in VS. C++ renaissance my ass.
 
Xeo
12:45 PM
template<class F>
auto fix(F f){ return [=](auto a){ return f(fix(f), a); }; }
Hm, I feel like this should work.
Clang's telling me about infinitely recursive template instantiation though
oh wait, I think I know why
derp
 
user1804599
Return type.
 
Xeo
aye
 
user1804599
I GUESS I DON'T KNOW PLONK ME
 
Xeo
wat?
 
plonk constant
 
12:56 PM
You need to fix the return type.
Sooooooooooo punny.
 
Xeo
Argh, making fix a functor also doesn't work if the fixed thing is polymorphic
auto foldrF = [](auto foldr_, auto f){ return [=](auto init){ return [=](auto xs){
    if (auto v = xs())
        return f(v, foldr_(f)(init)(xs));
    return init;
};};};

auto foldr = fix(foldrF);
3
:(
 
@Abyx Relates the frequency of a question to the energy expended on answering it? Must be an inverse relationship:)
 
@Xeo The type has to be fixed.
 
Xeo
@R.MartinhoFernandes Fuck you too.
 
But the puns!
And I'm helping!
 
Xeo
1:01 PM
This sucks.
can't have polymorphic and recursive lambdas at once.
welp, guess foldrF will have to be a boring function template
 
Kids and their newfangled toys.
How do you express powers in German?
Say, "two to the fifth", or "four cubed".
 
Xeo
"2 hoch 5", "4 quadrat"?
 
2 hoch 5
 
drei gecubt.
 
Xeo
No. Just no.
 
1:07 PM
@Xeo I suppose "quadrat" is "squared".
 
Xeo
@R.MartinhoFernandes right
 
What about "cubed"?
 
Xeo
I think for 'cubed' I just say 'hoch 3'
I mean, you could try '4 gewürfelt', but I remember you not being the best with knives.
 
What's the relation with knives?
Oh.
:<
 
Xeo
@R.MartinhoFernandes a pun :P
 
1:09 PM
a bad one :D
 
Xeo
Not in his case
In any case, I can't get foldr to work for my lambda-streams. argh.
foldl was easy, but foldr seems kinda impossible without actualising the stream into something concrete.
@DeadMG Did you implement foldr in Wide?
reverse will also be pretty impossible, huh.
 
user1804599
Beh, functional programming in C++.
 
user1804599
Give up pl0x.
 
Xeo
nevar
 
Xeo
1:34 PM
> no known conversion from 'const <lambda at main.cpp:57:12>' to 'const <lambda at main.cpp:57:12>'
wait, wha
 
do you think I can convince my school that, because I've taken discrete structures already, I shouldn't have to take finite mathematics?
 
Xeo
aren't these supposed to be the same type?
meeeh, lambdas all having different types is really biting me now, I think
No reverse after all, I guess.
It could've been so simple: foldl(flip(cons))(empty)(xs)
 
user1804599
auto l = [] () {};
std::cout << std::is_same<decltype(l), decltype(l)>() << '\n';
 
user1804599
True or false?
 
Xeo
true
a variable can't change type
 
user1804599
1:43 PM
I don't know which type system is worse; C++' or Scala's.
 
@Xeo flip (:) doesn't do what you think it does.
 
Xeo
@R.MartinhoFernandes ?
 
Or maybe foldl doesn't.
 
Xeo
reverse = foldl (flip (:)) [] is the Prelude definition
 
user1804599
lol
 
Xeo
1:44 PM
auto foldl = [](auto f){ return [=](auto init){ return [=](auto xs){
    auto ret = boost::make_optional(init);
    while (auto v = xs())
    {
        ret = boost::in_place(f(*ret)(*v));
    }
    return *ret;
};};};
 
Oh, don't mind me.
 
Xeo
The types are just clashing, somewhere, it seems.
 
user1804599
A guy who got robbed offers a reward of 5000 euros, plus 100 euros per broken bone.
 
String literals (like __FILE__), can be used as key in map like this right? std::map<const char*, ...>
 
user1804599
> je blijft met je poten van mijn spullen af, anders breek ik je poten
 
1:46 PM
@rightfold he's gonna need rontgen
to get an accurate count
 
user1804599
> Overigens wordt het nog lucratiever als de inbrekers baby blijken te zijn, want die hebben maar liefst 350 botjes. Of een slang, want die kunnen wel tot 700 botten hebben!
 
als je er met een pletwals overheen gaat zijn ze allemaal gebroken
maar moeilijk telbaar
 
@StackedCrooked The answer to that question is "yes". The answer to the question you want answered is "no".
 
Xeo
Meh, this sucks. I need a proper nil, can't have that. Can't have polymorphic recursive lambdas. Can't have reverse, it seems. I think I'm hitting some kind of limit here.
Even though the types should be perfectly fitting
 
@R.MartinhoFernandes is this taoism?
 
Xeo
1:48 PM
Oh. Wait.
 
user1804599
@StackedCrooked dan doe ik er een walsje bij als afsluiting.
 
@R.MartinhoFernandes I don't understand... :(
 
user1804599
@StackedCrooked it compares and hashes pointers, not strings.
 
user1804599
You need custom hasher and comparator if you want to compare the strings, or you need to use a different data type as key.
 
Xeo
1:50 PM
> no known conversion from 'const <lambda at main.cpp:57:12>' to 'const <lambda at main.cpp:45:12>'
okay, this makes more sense
 
user1804599
Oh wait, std::map not std::unordered_map. Oh well, same principle.
 
Xeo
turns out the error message before were two different <lambda at main.cpp:57:12>
 
@rightfold I wanted a mechanism to uniquely identify LOG (macro) statements. I thought the combination of __FILE__, __LINE__ (and maybe __FUNCTION__) could be used a as a tuple key in a map which stores data (timestamp, counter) to detect log flooding.
Which would enable rate limiting.
 
Xeo
Argh, FUCK
 
Xeo
1:56 PM
I need a proper nil
and I can't get that
 
SQLAlchemy looks nice
 
What's a proper nil?
 
Xeo
a type-matching one, to my list
 
Hehehe: PHP gets lazy in the afternoon. Maybe it drinks at lunchtime?
http://stackoverflow.com/questions/23246507/php-how-to-make-sure-each-socket-requests-are-sent
 
Xeo
but since my lists are lambdas...
 
user1804599
1:58 PM
@MartinJames $this->socket = @fsockopen($this->host, $this->port, $errno, $errstr, 1);
 
user1804599
haha @ operator.
 
user1804599
@StackedCrooked well, if they are all string literals, should work fine.
 
if they are string literals? sometimes they are not?
 
I'm not sure what you want to accomplish by this
 
user1804599
2:00 PM
Just use std::string as key really.
 
user1804599
Or at least a custom comparator that uses std::strcmp.
 
@StackedCrooked Can't.
@rightfold No.
String literals are not guaranteed the same address if the contents match.
 
user1804599
AHAHAH
 
__FILE__ is obviously not unique, but the combo of __FILE__, __LINE__ and maybe __FUNCTION__ should help, not?
@R.MartinhoFernandes oh
 
2:06 PM
@StackedCrooked But what for
 
Xeo
@R.MartinhoFernandes I think that's irrelevant here, if he just wants to aggregate all log calls and print the file, line, function, and not retrieve a specific call.
since the string literals will always be the same object at those points
 
@StackedCrooked Does my original cryptic answer make sense now?
 
@CatPlusPlus I want to be able to log if incoming packets are bad. this is important feedback. But often if one packet is bad they are all bad and I end up with 100k log messages per second. I'm looking for a way to manage this.
@R.MartinhoFernandes I find it hard to believe.
 
I have to say that I found it extremely annoying to add lines // DO NOT REMOVE THIS COMMENT in Nonius because of not enough uniqueness in those macros.
 
It's not just the content that matches, it's produced from the same macro statement. (same file and line)
Maybe a log statement in the header which is in multiple TUs..
 
2:10 PM
Yep.
 
You're looking for a global solution to a local problem
 
thanks, now I'm all relieved.
:P
 
@StackedCrooked Sounds like something is very wrong with your protocol:(
 
user1804599
std::string is easiest to implement and easiest to read and understand.
 
user1804599
So use std::string.
 
2:12 PM
it's a local problem at many places
@rightfold yeah, I have nothing against that.
 
Make LOG_UNIQUE("id", "message") or maybe just a was_logged variable or shit, the behaviour you're describing is not something I'd want in a logging system
 
performance doesn't really matter when you are fighting log floods (it's gonna be bad anyway)
 
In Nonius I solved the uniqueness clashes by munging the whole thing into a single header.
 
GLOG has a few interesting options like LOG_EVERY to log every N times.
 
user1804599
@StackedCrooked write a compile-time hash function, pass the string literal to it and use the hash as key.
 
2:13 PM
(a very dirty secret: single-headerness is a workaround, not a feature)
 
user1804599
Hope for no conflicts. :D
 
@rightfold no need for optimization :)
@CatPlusPlus what does LOG_UNIQUE do?
Log only once?
 
Logs a uniquely identified message.
 
Whatever you want
My point is don't make this behaviour a default
 
Xeo
Ugh, I think I know where exactly the type-mismatch happens, and I don't think there's anything I can do about it :<
 
2:21 PM
@R.MartinhoFernandes that's the catch.hpp! :)
@StackedCrooked pletwals? lolwords
 
I have no idea what that word was supposed to mean there, but the only thing I can think of is płetwal.
Płetwal błękitny (Balaenoptera musculus) – gatunek walenia z rodziny fałdowców. Największe znane zwierzę w historii Ziemi. Długość ciała tego ssaka dochodzi do 33 metrów, a masa ciała do 190 ton. Zaliczany do rodziny fałdowców, podrzędu fiszbinowców, rzędu waleni. Płetwal błękitny ma dwa otwory nosowe, małą płetwę grzbietową w tylnej części ciała i dużą płetwę ogonową z wyraźnym wcięciem pośrodku. Dawniej w oceanach żyło wiele osobników tego gatunku. Masowe polowania na wieloryby w XX stuleciu sprawiły, że populacja płetwali błękitnych zmniejszyła się wielokrotnie. Jedynym naturalnym wro...
 
Malificient looks like an awesome movie :o
 
Dang. Would C++ be in the full report? "The security of the most popular programming languages"
 
user1804599
omg perl
 
u hv to spk englsh n ths sit. Not because we can't understand things, but because it makes it look like you don't respect the people that you would like to be helping you. If you are too lazy to type a few words, you're simply not going to succeed and helping you is a waste of time. — sehe 7 secs ago
That was after I already commented at the answer stackoverflow.com/questions/23242169/…
 
2:35 PM
@Xeo Not possible for input ranges unless you evaluate them into something else first that offers better access semantics.
 
I can't help but read "hv" as [hv].
 
Xeo
@DeadMG Yeah.
 
@sehe ColdFusion?
REALLY
 
Xeo
Well, if you are able to reverse the (finite) stream, you can just foldl it with a flipped function
But I'm stuck with reversing :(
 
@sehe Based upon the (admittedly rather minimal) discussion in what's online, my guess would be "no". They looked only at languages used to develop web sites, and looked for specific types of vulnerabilities such as cross-site scripting and SQL injection, most of which simply don't apply to C++.
 
2:42 PM
Also ColdFusion.
 
Roh
Hi guys
 
well
 
Roh
I have a question about a part of this code
 
I always knew that I would have to define other interfaces for bidi/random access.
 
Is it ColdFusion?
 
2:45 PM
1 message moved to bin
 
gtfo
 
Please don't post walls of code.
 
Roh
then How can I ask my question?
 
@Roh You can't in here.
 
Roh
2:48 PM
ok Thanks
 
@Xeo The Wide input/forward range model is super nice for simple ranges, nearly-coroutines, etc, but it's not a panacea and you'll need something stronger for reversal unless you're happy to evaluate into a vector or something.
 
Xeo
@DeadMG Reversing would be simple if I could make my types match up
1 hour ago, by Xeo
It could've been so simple: foldl(flip(cons))(empty)(xs)
 
That's materialisation.
 
@Abyx There's better ways to express that feeling.
Or were you not talking to wall-of-code-poster?
 
what's the problem on the type level?
 
Xeo
2:50 PM
Lambdas having different types :P
I can't get a proper empty
 
lol
 
Xeo
that would allow my foldl implementation to work
 
Why not?
What's the type of cons?
 
Xeo
auto cons = [](auto x){ return [=](auto xs){
    return [=, v = boost::make_optional(x)]() mutable {
        auto r = v ? v : xs();
        v = boost::none;
        return r;
    };
};};
:D
It's lambdas all the way down in this code
 
Still amounts to materialisation.
It just happens to be within the universe of lambda calculus.
 
Xeo
2:52 PM
Nothing is materialised until you need it
 
just use an intermediate container.
 
@Xeo In your reverse it is.
 
Xeo
@R.MartinhoFernandes Well, yeah.
 
@R.MartinhoFernandes I read that as "lambda chuckles"
 
the reason why the types don't match up is because you're trying to do the impossible.
 
2:54 PM
Is there a name for the sequence i^i for all natural non-zero i?
 
you can't implement reversing an input range without materializing into an intermediate container, and all you're achieving with this flip fold whatever is materializing it in a really strange way chaining lambdas into a std::function or something
it's much simpler to just evaluate it into a vector and be done with it
 
@rubenvb yeah it was because of that wall. it's merely a short form of "go to Stack Overflow"
 
@DeadMG It's what I've been trying to tell him.
@Abyx You typoed the 's', I assume ;)
 
@Abyx I still like:
 
Xeo
2:57 PM
@DeadMG But.. but.. :<
 
user1804599
Square apples.
 
@rightfold I just sent anonymous feedback for that :-P
 
user1804599
> Related Queries: Jane given name vs Sanai given name
 
3:02 PM
@R.MartinhoFernandes I can't seem to find anything (nor do I know of anything of the sort). Why do you ask?
 
JBL
i don't want std::vector, because in my program i will get those substrings, and then reanalyse them to see if they are number, then pass them to a function and so on...it's much more easier for me to work in the way I wanted above — user3565078 4 mins ago
So apparently some people prefer char** to vector of strings. Much more easier you know.
Gnnn.
 
@JBL I remember a time where I tried to cram as many pointers as possible into my programs.
I had spent years programming in assembly language, and they simply felt "natural" to me.
Nowadays I prefer readability, maintainability and other boring code quality aspects ;)
 
JBL
Damn, yet I don't see any intervention of yours in this :P
 
@R.MartinhoFernandes You have read the SE blog post, I see
 
3:14 PM
Hi folks. I'm new to C/C++, coming from Java and C#. The biggest stumbling block I have right now is understanding pointers. Looking at a page on fopen, I see the following:

FILE *fopen(const char *filename, const char *mode)

What does the * mean in front of the function name? I understand that in front of a variable name it means the variable holds a memory address and not a value... Does this mean that the function returns a pointer?
 
@agent154 fopen is C, this is a C++ room.
 
@Jefffrey I tried finding a C room and couldn't, so I assumed this was just as good... Which room should I go to?
 
@agent154 You should stay here, and write modern C++ (in which you'll almost never use pointers) instead of C-like code that everybody (especially you) will hate within six months.
 
@agent154 nobody uses C anymore. That's why there's a C++ room but a C room is lacking.
 
3:17 PM
@Jefffrey Tell that to the embedded programming/electrical engineering department/GPU programming.
 
@Nican sshhhh
 
@agent154 TBH I'd point recommend using a good book on Modern C++ if you're this new to C++
 
@Nican Their fault.
 
Well, I'm trying to read and understand the reference FLAC decoder code so I can try to program a decoder in 100% C#... I need to understand the old ways of doing things if I'm going to make sense of some of this stuff sadly.
 
@agent154 Yes, FILE* is a pointer
 
3:19 PM
I have a C++11 book here that I plan on reading... but for now I"m just trying to understand legacy code.
 
I believe C++ books will teach you pointers
 
@agent154 "I need to understand all details of the existing code to ensure that no part remains un-ruined."
 
@agent154 as someone who works with legacy code daily, good luck. I don't undertand half the shit I come across.
 
you know, being C++ a superset of C
 
OK, thanks.
 
3:23 PM
To be honest, FILE* being a pointer is irrelevant.
When dealing with files in C FILE* is a thing by itself.
You never perform any pointer operations on it.
You can think of it as a funnily named type that represents open files.
 
using FUNNY_FILE = FILE*;
 
@TheForestAndTheTrees Swap? I cannot get to half. My inherited legacy shit is ledgendary:(
 
In the future people will consider your C++, legacy.
 
@R.MartinhoFernandes It used to be a File Control Block pointer. Prob. now an OS handle in disguise.
 
"Oh gawd, look at these bubs, ewww range-for loops, ewww auto, ewww C++"
 
3:30 PM
@Jefffrey Their, (big), problem:)
 
we all know Wide's the future
just accept it
 
@DeadMG I can't swallow that:)
 
I was thinking more of a pure functional language
 
@MartinJames She didn't say that.
 
@DeadMG what "state" is Wide in btw? can I go somewhere and compile me some Wide without having to jump too many hoops?
 
3:31 PM
@R.MartinhoFernandes Well....
 
erm
coliru should still have some version of Wide available
you'd have to ask Stacked about that, though, ISTR that he broke it
I broke ... everything ... on Linux, though, I think, and I haven't gotten around to fixing it yet
 
Oh right, I'll have to go through the doumenta....

Never mind.
 
good thing I don't have Linux
 
as for Windows, I could zip up a package if I wanted to deploy it
 
well, when you have something working that can be played with, give me a link
 
3:34 PM
I'd have to actually build in release mode
 
@DeadMG inb4 only works in debug build:)
 
pretty sure it works in release too.
I just haven't tried in a while.
not since all the Linux release tests broke
 
I have a few methods that I need to have available in several places in my program. Is the expectation that these would go in a static class?
 
@recursive_acronym "static classes"? That's not a C++ feature.
 
static members of a class then
 
3:41 PM
ITT: We try to program C++ like it's a substantially worse language.
 
Hehe - I've been waiting all my life for the phone call I just had. "Hello, Martin.., "Hello, can I speak to Mr Wright", "Sorry, no, this is Mr Wrong".
 
@JerryCoffin yeah me too "popular languages" :)
 
@recursive_acronym They should be free standing functions.
 
Is it time for a singleton joke?
 
@recursive_acronym The real question isn't how many places those functions need to be used, but whether they apply to a specific object or not. If they apply to a specific object, then they should probably be normal member functions. If they don't, they should probably be free functions (though quite possibly in a namespace, if they're closely related).
@MartinJames It's the wrong season for a Singletary joke, but always the wrong season for a singleton.
 
3:50 PM
free functions.. ok
 
Unhandled exception in thread started by
sys.excepthook is missing
lost sys.stderr
:| wat?
 
jerry, etienne - thanks, I guess I just needed to know what to look for
Is it possible pass std::vector<T>& to a function where the function doesn't actually care about what the Type is? Maybe it just returns a random element or does something generic like
 

« first day (1285 days earlier)      last day (3648 days later) »