« first day (750 days earlier)      last day (4184 days later) » 

1:09 PM
@R.MartinhoFernandes Second must be const&.
 
Oh, right.
 
user142019
Container storage() && {? What does that do?
 
hello everyone :)
 
user142019
I have never seen && in such a place.
 
@Zoidberg'-- It's an overload only callable on rvalues.
 
user142019
1:11 PM
Oh that’s cool.
 
I am trying to compile tesseract-ocr in VS 2012. I am getting errors like "error C1083: Cannot open source file: '..\..\training\ambiguous_words.cpp': No such file or directory"
is it a problem with linking?
 
@R.MartinhoFernandes can I actually also do that with constructors?
 
@bamboon No.
Would that be useful?
 
how could you possibly do that with a constructor?
there is no object to exist to be an rvalue or lvalue
 
@DeadMG Well, you could call different ctors for foo {} and for foo x;, I guess.
 
1:18 PM
@R.MartinhoFernandes yeah, that is what I was thinking
 
But auto&& x = foo{}; kinda messes things up.
 
user142019
// maybe something like this makes sense
lock_guard<std::mutex>{mutex}; // error —> lock_guard(T&) && = delete;
 
user142019
Or wait, that’s not an rvalue.
 
@vulcanraven it can't find the file. Is it in the directory? Is the dir correct?
 
user142019
@vulcanraven no, it has nothing to do with linking.
 
user142019
1:21 PM
It’s a compile-time error, not a link-time error.
 
user142019
@TonyTheLion Also, is it readable by the current user?
 
@Zoidberg'-- yes
 
Ell
I think I'm gonna do some gtk-3
 
user142019
@Ell It was nice to know you.
 
Ell
:3
 
1:31 PM
@TonyTheLion, I have just opened and compiled the project as is. The directory structure is intact
VS2012 converted the project when I opened it
 
Ell
hmm now I forgot how to use cmake
 
inb4 spam?
@Ell hey! You get to learn a new thing, for free!
 
1 message moved to bin
 
Ell
I used it for something a while ago
but now I forgot >.<
 
@LucDanton I was unable to figure out what the link was aiming to achieve, anyways
 
1:34 PM
@LucDanton why did you delete my message?
 
@Falconapollo Because you dumped a random link drive-by style?
Oct 24 at 19:54, by sbi
If you are new here, please take a quick look through the newbie hints. Thank you.
 
Ell
` --enable-xdamage support X Damage extension [default=maybe]`
maybe :L
 
@Ell do it depends on ... probably availability or things like Xgl etc
 
how does python implement ctypes?
 
Ell
oh right that actually makes sense :L
 
1:36 PM
do they JIT a function or smth?
 
@LucDanton ok. thank you
@LucDanton ok, thank you
 
lol
@DeadMG I have no clue, fwiw
 
Hmm. I want to order some German learning books, but I am only getting an address next week. This sucks.
 
@LucDanton in fact, i just want to share some information. if it's not allowed, i won't do that
 
@R.MartinhoFernandes You need to find german Barnes & Nobles, maybe
 
1:37 PM
@R.MartinhoFernandes no prob
there is the so called "paketstation"
 
struct X { int f(); };

void k(X *p) {
    int i = p->f(); // X::F() gets external linkage
}

inline int X::f() { // Error: call before definition as inline
    return 0;
}
does this code violate ODR?
 
@bamboon Ooooh. Tell me more.
 
@Falconapollo Well, you might have tried talking to us first, then introduce the link, so we don't have to blindly follow your 'command' and click a random link :)
 
it's basically a storage where DHL (one of the german mail providers) can drop your packages and you can pick them up any time you want.
 
1:39 PM
@sehe ok, i see. i'm sorry for my mistake
 
@Falconapollo You could... still, if you think it's worth it :)
 
you first have to register though
 
@sehe you are friendly.:)
 
Shhh, we don't want the masses to know :)
 
Oh cool, seems there's one of those stations just down the street.
 
Ell
1:41 PM
I'm going through my c++ folder
it's sad how many projects I've started :L
 
You have a C++ folder?
 
Ell
for my projects
and a java,ruby,python,c,etc. folder
I separate projects according to language
 
user142019
I store my projects in ~/Documents.
 
user142019
@Ell what if you have a project written in multiple languages? Do you create a multiple hardlinks to the project folder?
 
Ell
I just don't :L I haven't finished a single project yet
I've barely started a single project
so really, there are no issues :P
 
1:46 PM
@R.MartinhoFernandes Maybe you can also get it delivered to your work?
 
user142019
 
@Zoidberg'-- Come on. You have experimented with terrible languages as well.
Exhibit A: PHP.
 
user142019
PHP </3
 
Exhibit B: Objective-C++.
 
Ell
It's not that bad
 
user142019
1:48 PM
@Ell My language awesomeness chart tells otherwise.
 
user142019
It’s on the second place after PHP.
 
Exhibit C: C.
 
@R.MartinhoFernandes lol
 
user142019
Objective-C++ and C are both way better than Java.
 
user142019
Objective-C++ has type inference, at least.
 
1:51 PM
@bamboon lol, I need an address to register.
@bamboon I guess I could try that.
 
@Zoidberg'-- And crappy syntax to make it unusable in compensation :)
I mean, lisp is an awesome language, if it were not for crappy lack of syntax
 
user142019
@sehe well, I find auto very useful when dealing with stuff like initializing objects.
 
user142019
NSMutableDictionary* foo = [[NSMutableDictionary alloc] init];
// vs
auto foo = [[NSMutableDictionary alloc] init];
 
No shit. I wouldn't have guessed. But, really. [[NSMutableDictionary alloc] init]; ??!
 
user142019
You can also use [NSMutableDictionary new] but that’s unconventional.
 
1:53 PM
lol
WTF
 
user142019
Or [NSMutableDictionary dictionary], which returns an autoreleased mutable dictionary. :P
 
The convention is to use the crappiest form?
 
@R.MartinhoFernandes ^^, I would try the other way then. But besides that it's a cool thing especially when you are at work the whole day.
 
user142019
The convention is [NSMutableDictionary dictionary], unless you need it retained. But with ARC, you always want [NSMutableDictionary dictionary].
 
user142019
And if you don’t use ARC, you’re a fool.
 
user142019
1:55 PM
But when I do Objective-C++, I only use the Objective-C part for Objective-C frameworks.
 
user142019
I use C++ for everything else since Objective-C is terrible.
 
user142019
C++ is also terrible, but much less terrible.
 
@Zoidberg'-- Me, too~
 
@Zoidberg'-- That was my point.
 
@R.MartinhoFernandes Maybe you can do both - use your works address to register and have the package delivered to the DPD drop office. The problem with having it addressed to yourself at the office is that you may not exist yet on their IT systems and so the package may be refused or quarantined by a goods-inwards clerk.
 
user142019
1:56 PM
I’m going to write a template function to call Objective-C methods from pure C++.
 
@Zoidberg'-- is it a good idea to lock yourself into just C++?
 
user142019
@Falconapollo Better than Objective-C++.
 
There's no such thing as "pure C++". C++ is hopelessly tainted.
 
user142019
I could also use Python or Lua.
 
1:58 PM
@TonyTheLion, lol
 
user142019
Or Ruby, for that matter.
 
@R.MartinhoFernandes That's common, really. The common form in C++ is frequently out-of-class method definitions, initializers etc. In C#, non-auto properties are frequently 'preferred' in coding guidelines. C++ structs get public: qualifiers by convention, singlestatement blocks get braces, even if it hurts readability etc. Conventions usually dumb any language down
 
user142019
lol or PHP.
 
I hate C++ which has get_xxx and set_xxx strewn all over it.
 
user142019
I hate C++.
 
1:59 PM
@TonyTheLion That's J++
 
Y U NO USE ABSTRACTION?
 
@Zoidberg'-- Join the club
 
I hate C++
 
@sehe WTF, why would anyone not want auto-properties?
 
but it would be worse to program in any other language that's currently implemented
 
1:59 PM
Python FTW
 
@R.MartinhoFernandes Ignorance.
 
@Zoidberg'-- which programming language do you like?
 
inb4 erlang/elixir
 
user142019
@Falconapollo Haskell, Erlang, Elixir, Ruby, IcedCoffeeScript and Python.
 

« first day (750 days earlier)      last day (4184 days later) »