This is the mail archive of the libstdc++-cvs@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r156815 - in /trunk/libstdc++-v3: ChangeLog inc...


Author: paolo
Date: Tue Feb 16 19:19:55 2010
New Revision: 156815

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=156815
Log:
2010-02-16  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/random.h (linear_congruential_engine(_Sseq&),
	mersenne_twister_engine(_Sseq&), subtract_with_carry_engine(_Sseq&)):
	Do not enable for the type itself.
	(discard_block_engine(_Sseq&), independent_bits_engine(_Sseq&),
	shuffle_order_engine(_Sseq&)): Do not enable for the type itself too.
	(linear_congruential_engine<>::seed(_Sseq&),
	mersenne_twister_engine<>::seed(_Sseq&),
	subtract_with_carry_engine<>::seed(_Sseq&)): Use enable_if on the
	return type.
	(discard_block_engine<>::seed(_Sseq&),
	independent_bits_engine<>::seed(_Sseq&),
	shuffle_order_engine<>::seed(_Sseq&)): Do not use enable_if.
	* include/bits/random.tcc: Adjust definitions.
	* testsuite/26_numerics/random/independent_bits_engine/cons/copy.cc:
	New.
	* testsuite/26_numerics/random/subtract_with_carry_engine/cons/
	copy.cc: Likewise.
	* testsuite/26_numerics/random/discard_block_engine/cons/
	copy.cc: Likewise.
	* testsuite/26_numerics/random/mersenne_twister_engine/cons/
	copy.cc: Likewise.
	* testsuite/26_numerics/random/linear_congruential_engine/cons/
	copy.cc: Likewise.
	* testsuite/26_numerics/random/shuffle_order_engine/cons/
	copy.cc: Likewise.

	* testsuite/26_numerics/random/independent_bits_engine/cons/
	base_move.cc: Minor tweaks.
	* testsuite/26_numerics/random/independent_bits_engine/cons/seed1.cc:
	Likewise.
	* testsuite/26_numerics/random/independent_bits_engine/cons/seed2.cc:
	Likewise.
	* testsuite/26_numerics/random/independent_bits_engine/cons/
	base_copy.cc: Likewise.
	* testsuite/26_numerics/random/independent_bits_engine/cons/
	default.cc: Likewise.
	* testsuite/26_numerics/random/independent_bits_engine/cons/
	seed_seq.cc: Likewise.
	* testsuite/26_numerics/random/subtract_with_carry_engine/cons/
	seed1.cc: Likewise.
	* testsuite/26_numerics/random/subtract_with_carry_engine/cons/
	seed2.cc: Likewise.
	* testsuite/26_numerics/random/subtract_with_carry_engine/cons/
	default.cc: Likewise.
	* testsuite/26_numerics/random/subtract_with_carry_engine/cons/
	seed_seq.cc: Likewise.
	* testsuite/26_numerics/random/discard_block_engine/cons/base_move.cc:
	Likewise.
	* testsuite/26_numerics/random/discard_block_engine/cons/seed1.cc:
	Likewise.
	* testsuite/26_numerics/random/discard_block_engine/cons/seed2.cc:
	Likewise.
	* testsuite/26_numerics/random/discard_block_engine/cons/base_copy.cc:
	Likewise.
	* testsuite/26_numerics/random/discard_block_engine/cons/default.cc:
	Likewise.
	* testsuite/26_numerics/random/discard_block_engine/cons/seed_seq.cc:
	Likewise.
	* testsuite/26_numerics/random/mersenne_twister_engine/cons/seed1.cc:
	Likewise.
	* testsuite/26_numerics/random/mersenne_twister_engine/cons/seed2.cc:
	Likewise.
	* testsuite/26_numerics/random/mersenne_twister_engine/cons/
	default.cc: Likewise.
	* testsuite/26_numerics/random/mersenne_twister_engine/cons/
	seed_seq.cc: Likewise.
	* testsuite/26_numerics/random/linear_congruential_engine/cons/
	seed1.cc: Likewise.
	* testsuite/26_numerics/random/linear_congruential_engine/cons/
	seed2.cc: Likewise.
	* testsuite/26_numerics/random/linear_congruential_engine/cons/
	seed_seq.cc: Likewise.
	* testsuite/26_numerics/random/shuffle_order_engine/cons/base_move.cc:
	Likewise.
	* testsuite/26_numerics/random/shuffle_order_engine/cons/seed1.cc:
	Likewise.
 	* testsuite/26_numerics/random/shuffle_order_engine/cons/seed2.cc:
	Likewise.
	* testsuite/26_numerics/random/shuffle_order_engine/cons/base_copy.cc:
	Likewise.
	* testsuite/26_numerics/random/shuffle_order_engine/cons/default.cc:
	Likewise.
	* testsuite/26_numerics/random/shuffle_order_engine/cons/seed_seq.cc:
	Likewise.

Added:
    trunk/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/cons/copy.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/cons/copy.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/cons/copy.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/cons/copy.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/cons/copy.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/cons/copy.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/random.h
    trunk/libstdc++-v3/include/bits/random.tcc
    trunk/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/cons/base_copy.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/cons/base_move.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/cons/default.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/cons/seed1.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/cons/seed2.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/discard_block_engine/cons/seed_seq.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/cons/base_copy.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/cons/base_move.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/cons/default.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/cons/seed1.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/cons/seed2.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/independent_bits_engine/cons/seed_seq.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/cons/seed1.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/cons/seed2.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/linear_congruential_engine/cons/seed_seq.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/cons/default.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/cons/seed1.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/cons/seed2.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/mersenne_twister_engine/cons/seed_seq.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/cons/base_copy.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/cons/base_move.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/cons/default.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/cons/seed1.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/cons/seed2.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/shuffle_order_engine/cons/seed_seq.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/cons/default.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/cons/seed1.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/cons/seed2.cc
    trunk/libstdc++-v3/testsuite/26_numerics/random/subtract_with_carry_engine/cons/seed_seq.cc


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]