aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2015-04-28 13:35:30 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2015-04-28 13:35:30 +0100
commitd747ee05e36de80e530ad7d361750bba5c890342 (patch)
tree70c6d512e1823606fc3780bd0050a10b99b392fc /libstdc++-v3/include
parent196e0493cbb815694372c520cfb9150cad60d799 (diff)
downloadgcc-d747ee05e36de80e530ad7d361750bba5c890342.zip
gcc-d747ee05e36de80e530ad7d361750bba5c890342.tar.gz
gcc-d747ee05e36de80e530ad7d361750bba5c890342.tar.bz2
re PR libstdc++/65631 (seed_seq should not be copyable)
PR libstdc++/65631 * include/bits/random.h (seed_seq) Define copy constructor and copy assignment as deleted. * testsuite/26_numerics/random/seed_seq/cons/65631.cc: New. From-SVN: r222524
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r--libstdc++-v3/include/bits/random.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libstdc++-v3/include/bits/random.h b/libstdc++-v3/include/bits/random.h
index 8caade5..501243d 100644
--- a/libstdc++-v3/include/bits/random.h
+++ b/libstdc++-v3/include/bits/random.h
@@ -6053,6 +6053,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
param(OutputIterator __dest) const
{ std::copy(_M_v.begin(), _M_v.end(), __dest); }
+ // no copy functions
+ seed_seq(const seed_seq&) = delete;
+ seed_seq& operator=(const seed_seq&) = delete;
+
private:
///
std::vector<result_type> _M_v;