« first day (885 days earlier)      last day (4289 days later) » 

21:00
the semantics have to be explicit, else I can't guarantee that the function pointer remains valid.
Xeo
Xeo
> Therefore, I propose to also allow decltype(auto) to get the decltype semantics without having to repeat the expression.
Oh please let them accept that /cc @LucDanton @R.MartinhoFernandes
like
@Xeo decltype(auto) SomeClass::staticMember;?
Xeo
Xeo
@BartekBanachewicz No. decltype(auto) f(){ return shit(); }
umm
I thought it was supposed to be just auto f()
Xeo
Xeo
That's the other variant
21:02
it's shorter
Xeo
Xeo
But auto always copies, and auto&& is always a reference
Xeo
Xeo
decltype(auto) would exactly reflect the value category of the original expression
Xeo
Xeo
I call this perfectly returning in my paper, btw.
@BartekBanachewicz Huh?
Who said that only one was to be proposed, and not both?
21:04
nvm then.
Xeo
Xeo
Oh, not only for functions btw
Xeo
Xeo
const int&& foo();
decltype(auto) x1a = foo(); // type is const int&&
It's basically a perfectly-deducing auto
@Xeo That's just auto&&.
Xeo
Xeo
@DeadMG No. If foo() returned a prvalue, x1a would be T. With auto&&, it would be T&&.
21:05
so I see
Xeo
Xeo
And we dearly need perfect-returns
although, of course, I personally find the difference incredibly irrelevant
Xeo
Xeo
It's not
I'm sure someone can find an essential purpose.
call it declautotype and save a () :)
Xeo
Xeo
21:06
For wrapper functions, the difference is significant
for functions, it is.
for variables, though.
Xeo
Xeo
It's the same semantics for both, so eh
@DeadMG. Suppose I have a map. How can I convert it into a range?
@DeadMG: While I see the wisdom in making the default allocator parameter IB, I think it would be wise to note that none of the allocatiors listed in your proposal would make useful default allocator parameters. (Not default constructable)
I want to be able to call begin and end on the range object
Xeo
Xeo
21:09
@BartekBanachewicz It is a range.
oh, iterator_range!
@BartekBanachewicz if it's a multimap there's std::equal_range
Xeo
Xeo
@Rapptz That's something else
@BartekBanachewicz wait, now I really don't know what we're talking about
21:09
I have no idea what you're talking about
I think I just derped massively
@MooingDuck That's quite irrelevant.
I can return reference to map. As simple as fuck.
the default allocator is for the general case for that specific container; the allocators I have proposed are for specific cases for general containers.
decltype(data) const& getChunks () { return data; }
mwhahwhahahaa
21:11
also
> The serialized pool allocator allocates memory from one single global object pool, in a fashion such that it is safe to do so from multiple threads concurrently. It is default-constructible, movable, and copyable, and all instances are equal.
user142019
daknok% apachectl stop                                                        ~
This operation requires root.
[E1] daknok% sudo apachectl stop                                              ~
Password:
Xeo
Xeo
@BartekBanachewicz boom Compiler punches you likely in the face, depending on your class writing style.
user142019
sudo apachectl make me a sandwich.
@DeadMG oh I missed that one
@Xeo It worked. Should it NOT work?
Xeo
Xeo
21:12
@BartekBanachewicz Depends. :) How is your class layed out?
@Xeo I don't understand the question.
Xeo
Xeo
struct X{ int data; decltype(data) foo(){ return data; } }; // fine
struct X{ decltype(data) foo(){ return data; } int data; }; // not fine
I always usually keep variables above, so "fine"
also, fuck.
I am afraid we are back to the range question
because for () on map returns me a pair
Xeo
Xeo
Well, what do you want?
only .second-s. Doable?
Xeo
Xeo
21:17
map | boost::adaptors::map_values
Ell
Ell
Hi guys
@Xeo <3
hi @Ell
@Xeo does it copy though?
> Range Return Type: for constant ranges, boost::select_second_const<typeof(rng)> otherwise boost:select_second_mutable<typeof(rng)>
Xeo
Xeo
No, it's a reference
It's the same as map | transformed([](auto& p) -> auto&{ return p.second; })
But shorter, and not C++Next
Man, so many proposals to look through..
user142019
@Ell ¡Hola!
21:22
@Xeo does this work in C++11?
user142019
¡i¡i¡i¡i¡i¡
Xeo
Xeo
1 min ago, by Xeo
But shorter, and not C++Next
@Xeo I wasn't sure, so I asked more precisely
Who here likes Properties in C#?
@Pawnguy7 that was kind of out of the blue.
21:27
Hello peeps, I got a multithreading problem.
Or rather, a colleague of mine has.
Picture the following: several threads process various task, and push events in a concurrent queue.
An event at the start, and another one at the end.
Then, another thread pops events from the queue and dispatches them to various loggers.
@BartekBanachewicz Yes. I Was discussing it over in the C# room. Seeing as how nobody likes me much here, I didn't bother to say "hi".
Well, get this: sometimes, end events arrive before start events.
@EtiennedeMartel weird.
@EtiennedeMartel Seems you have a problem with time-travelling events not multithreading
Anyway, I don't know what advantages Properties hold over "normal" encapsulation, and if anything to me it seems worse. Still, it seems most people think C# is better in similar events.
21:35
@Pawnguy7 For reflection, mostly.
@EtiennedeMartel reflection in the java sense?
@Pawnguy7 Reflection in the dynamic language sense.
Ever tried writing a property grid in Java?
I have not, no.
Nor do I know what it is.
@ScottW I imagine it is, but the only one I know of firsthand is java.
@Pawnguy7 Properties and encapsulation are two orthogonal concepts
@CatPlusPlus That is probably my problem.
21:38
what.
@EtiennedeMartel 'pops events from the queue and dispatches them to various loggers' - how does this work?
> 'libboost_regex-iw-mt-gd-1_52.lib'
meh, I just decided to stop trying to help IE8 users on my website, quote:
> Works on virtually anything with a web browser. (But some don't work on Internet Explorer 8. If you use IE8, get a better web browser.)
why the fuck I suddenly need boost::regex
Or, say, Delegates.
21:40
@MartinJames Turns out it's probably something else entirely.
@Doorknob Just put Chrome Frame on it
I didn't exactly get those either. Hopefully in time, it will make sense.
@Xeo it seems full boost::adaptors require boost::regex o.O
@Cat too much trouble. I'm not doing anything for someone who uses IE8...
Xeo
Xeo
21:41
@BartekBanachewicz That's for the tokenized one
Just don't include <boost/range/adaptors.hpp>
Only the specific ones
<boost/range/adaptor/map.hpp>
In Java, they made this whole "bean" mess because they realized too late that properties and indexers would be quite useful, but instead of adding them to the language, they made a convention for it.
@Xeo I figured.
-6
Q: Cover Letter that We working with this company

Fahad Sohailwe get project from our college to make any online Store Managment System so we start work with my freind shop but i need cover letter that like that i m working with this shop and we 4 student so please can anyone share any letter that we are working with online store or any word that i can sea...

I tried to use SwingWorked in java today
that was so fucking painful.
Also apparently
... Hm.
21:43
in java you can't convert byte[] to Byte[] (and vice versa)
Rep should go into negative
@BartekBanachewicz I guess it didn't work.
Nothing I do makes this Right-Handed coordinate system work properly.
@EtiennedeMartel s/because the realized.*$/because they were clueless./ FTFY.
1 min ago, by Bartek Banachewicz
that was so fucking painful.
21:44
@JerryCoffin Trial and error design, in Java? Don't be ridiculous. They clearly knew what they were doing.
@EtiennedeMartel I see. Why are they useful for it, however?
@Pawnguy7 Because you can easily enumerate all the properties of an object.
Java is the biggest troll of this industry
@ThePhD have you tried multiplying z by -1?
@BartekBanachewicz Yes.
21:44
@EtiennedeMartel When I'm feeling cynical, I'm scared they really did, and its bad design was mostly intentional.
And all I succeeded in doing was reversing teh world space.
@EtiennedeMartel Enumurate?
@Pawnguy7 obj.GetType().GetProperties().Select(....)
Which is fine, but the problem is things are rendering with the farthest pixels being selected as candidates for overriding closer pixels.
@JerryCoffin I'm wondering if it's a religious thing.
21:46
What is select, in this situation?
Emunerate
why are people talking about programming in the Lounge
Like.. is Select the property?
@Pawnguy7 A projection.
21:46
@EtiennedeMartel But wouldn't religion lead to intelligent design? :-)
@Pawnguy7 It's an extension method taking a delegate (Func<T, bool>)
@Doorknob vOv
@JerryCoffin No. Religion is humans talking about intelligent design, not the design itself.
@Doorknob everytime. They won't ever learn. It's been going on since I first came here
21:47
I am lost... I think I will wait on this untill I have run into the situations where it would be useful, then I get it.
@Pawnguy7 You should learn about LINQ.
@EtiennedeMartel I think I'd better sign off for the day -- my attempts at humor are clearly falling flat as pancakes.
@sehe :P
@Pawnguy7 Also. Properties are better than the usual getter/setter pair mostly because it's not as verbose.
@EtiennedeMartel <3 Syntax.
21:48
@JerryCoffin Don't worry, I got your joke. I merely tried to chain it with one of mine.
@Pawnguy7 This is about every other second in C#
@sehe Can you expand on that?
@Pawnguy7 Using extension methods, and linq projections in particular is as central to modern C# as smart pointers are to modern C++
21:51
@EtiennedeMartel Ahahaha
"Change the world."
Has anybody here learned some form of assembly?
I never knew it was so easy.
@Pawnguy7 Err.. why, before I answer :)
@Pawnguy7 Yes
21:54
-1
Q: How can I change my html file's url address

user2188518I'm new to HTML and I'd like to know how I can change/give my file a URL address. Currently the location is file://localhost/C:/Users/Owner/Documents/ASD%20Awareness.html. I'd like to change it to an actual web address, like www.mysite.com/. How can I do this?

^ lol
@Doorknob research effort
@BartekBanachewicz Sadly, is short supply on SO, together with debugging skills.
> This is a time of crisis after economic crisis, and it's a fairly understandable rule of thumb that whether popular fiction depicts the powerful as gentle protectors or greedy hoarding assholes depends largely on whether or not there's a recession going on.
@Pawnguy7 Yes -- I can assemble a fairly decent ham sandwich.
I'm beginning to think the triangle winding order is incorrect.
@JerryCoffin Do I get to eat it? <3
21:57
> What is the keyboard shortcut to type fast in Visual Studio? here
@ThePhD What do you think the chances of that are?
Lol @sehe
That's golden
@JerryCoffin 50-50?
Maybe if I bring the beer?
@JerryCoffin Needs tomato and mayo.
21:58
@sehe He's asking about IntelliSense.
@EtiennedeMartel we can figure that out.
@ThePhD You might have had a 10% chance to start with, but threatening beer dropped that by quite a bit.
@Doorknob Let's have it moved to the web admin/server admin SE sties...
the title is funny though :D
@EtiennedeMartel No shit.
21:59
@MartinJames Oh, you're one of those people. Hmph!
@JerryCoffin Hm. Fine Wine?
@ThePhD You're up to at least 20% (depending on your definition of "fine").

« first day (885 days earlier)      last day (4289 days later) »