« first day (1091 days earlier)      last day (3860 days later) » 

Ell
10:00 PM
std::distance something, idk
 
Am I not chatting? -- LOL!
 
Ell
@SonuKrMishra No, you just pasted a link
which like jerry said is frowned upon before becoming part of the community
 
@not-rightfold Not that I know of.
 
Because the link had every detail regarding what I have already tried.
 
10:01 PM
@SonuKrMishra Most of us already follow all questions anyway. If we didn't answer your question, it's because we didn't feel like answering that question right now, not because we didn't see it.
 
Ell
@SonuKrMishra So?
 
Evening
 
Leave it -- Thank you very much for your help!
 
You are welcome.
 
@Ell you don't...
 
10:04 PM
@Jefffrey how goes it?
 
Everything is cool, thank :)
How you doin'?
 
Wishing I had free time.
 
user1804599
@Rapptz Hmm. It would be most useful.
 
There's is_permutation but that doesn't help tbh
 
@Pawnguy7 School?
 
10:07 PM
@Jefffrey hmhm
 
You can count permutations through calculation though
 
user1804599
std::uint64_t permutations = 0;
while (!std::is_sorted(data.begin(), data.end())) {
    std::next_permutation(data.begin(), data.end());
    ++permutations;
}
 
user1804599
I basically have to do this. :P
 
@Pawnguy7 I meant: is school keeping you busy?
 
hi guys
 
10:10 PM
Howdy
 
Ell
@not-rightfold I'm confused why do you need is sorted?
Aren't you comparing one permutation with another?
 
My food is running late
 
user1804599
The sorted sequence is one particular permutation of the sequence.
 
Sorting by permuting is really efficient you see
 
Ell
I made date and cranberry flapjack
 
user1804599
10:14 PM
@CatPlusPlus The point is getting the number of calls to next_permutation.
 
What for?
 
user1804599
I’m currently doing brute-force approach but there may be something more efficient. :P
 
If you know the end sequence, then you can just use it
 
@CatPlusPlus Sorting by random permutation is better though.
 
I love randomsort
 
Ell
10:17 PM
What is a Bruteforce sorting algorithm?
 
Bubble sort
 
Ell
Right okay
 
1
A: Return type deduction for in-class friend functions

DyPWith respect to the other answers: We're dealing explicitly with n3638 here, and how it's incorporated in the recent drafts of C++1y. I'm using 9514cc28 from the commitee's github repository, which incorporates some (minor) fixes/changes to n3638 already. n3638 allows explicitly: struct A { ...

give the guy a ton of upvotes please
 
I hope you mean a metric ton
Brb, computing the mass of an upvote
 
@MohammadAliBaydoun lol, tnx
 
Ell
10:32 PM
Dem dates. Dat sugar. Dem cranberries. Dat syrup. Dem oats. Dat flour. Dat butter. Dat bicarb of soda.
 
Sometimes, I feel like MSVC is shitting me:
 
@Jefffrey yes
 
user1804599
lol
 
user1804599
Compiling with clang instead of GCC saves four seconds at runtime.
 
10:43 PM
4 seconds out of how many?
 
Out of 3. rightfold is making a time machine ;_;
 
user1804599
@Borgleader 20.
 
Oh, wow that is a noticeable improvement
 
Whee!!!! New Strike Back season.
 
user1804599
Hmm.
 
user1804599
10:57 PM
std::uniform_int_distribution<bool> doesn’t work with libstdc++. Is that a bug?
 
it looks like a buggy to me
 
@not-rightfold I think it's only supposed to work with "int types"
Which might exclude bool, I'm not sure anymore though.
 
user1804599
Works with libc++. vOv
 
user1804599
May be a non-standard extension, perhaps even unintentional.
 
explicit uniform_int_distribution( IntType a = 0,
                                   IntType b = std::numeric_limits<IntType>::max() );
 
user1804599
11:02 PM
I passed false and true explicitly. :P
 
Hm. libstdc++ uses make_unsigned
You can use a char and cast into a bool I guess
I also found out bool meets is_integral.
 
@not-rightfold You don't use a BooleanSingletonFactory?
4
 
You can't have a BooleanSingletonFactory without a BooleanSingletonFactorySingletonFactory.
We're using a SingletonFactory because we want to ~~~~SAVEMEMORY~~~~
 
guys how do I stop being a horrible person?
 
Cat recommends jumping.
 
11:35 PM
@MohammadAliBaydoun -1 not enough factories
4
 
Rust sure went through a lot of iteration regarding its function types.
 
user1804599
Gah.
 
user1804599
std::array<unsigned char, N> y u no std::hash.
 
user1804599
Wait, I can use pointers to the arrays instead of copies of the arrays. :P
 
@Mysticial You did not just say that. Hahahah
 
Xeo
11:55 PM
@LucDanton Rust seems kinda complicated with all the different pointers, now functions.. what else?
 
That upcoming model is a simplification of the current rules. One motivation being usability.
 
user1804599
@LucDanton Sounds like Ruby.
 
So don't stick with appearances.
The pointers are more about variety than complexity, too.
 

« first day (1091 days earlier)      last day (3860 days later) »