Re: shuffle_random removed in C++17 on FreeBSD/Clang??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 9 Jan 2018, Willem Jan Withagen wrote:

Hi Willem,

As a consequence of the move to C++17 I'm running into this problem.

std::random_shuffle() was deprecated in C++14 and removed in C++17. Use std::shuffle().

The process is:

0) make a random device (ie. std::random_device)
1) make a distribution associated with that device (ie. std::mt19937)
2) shuffle!

I hope that helps,

-Jesse
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux