gcc/libstdc++-v3
Jonathan Wakely 5840e3b8ff PR libstdc++/84928 use std::move in <numeric> algorithms
P0616R0 altered the effects of the <numeric> algorithms to use std::move
on the accumulator values (resolving LWG 2055). This implements the
change for C++2a, but retains the previous behaviour for older
standards.

	* include/bits/stl_numeric.h (_GLIBCXX_MOVE_IF_20): Define macro to
	conditionally move, according to __cplusplus value.
	(accumulate, inner_product, partial_sum, adjacent_difference): Use
	_GLIBCXX_MOVE_IF_20.
	* testsuite/26_numerics/accumulate/lwg2055.cc: New test.
	* testsuite/26_numerics/adjacent_difference/lwg2055.cc: New test.
	* testsuite/26_numerics/inner_product/lwg2055.cc: New test.
	* testsuite/26_numerics/partial_sum/lwg2055.cc: New test.

From-SVN: r262477
2018-07-06 15:16:13 +01:00
..
config Simplify linker script patterns for std::exception_ptr 2018-07-06 13:52:41 +01:00
doc * doc/xml/manual/status_cxx2017.xml: Document N4531 status. 2018-06-25 17:42:28 +01:00
include PR libstdc++/84928 use std::move in <numeric> algorithms 2018-07-06 15:16:13 +01:00
libsupc++ PR libstdc++/85831 define move constructors and operators for exceptions 2018-07-05 22:29:51 +01:00
po Update copyright years. 2018-01-03 11:03:58 +01:00
python PR libstdc++/86112 fix printers for Python 2.6 2018-06-25 22:03:49 +01:00
scripts Update copyright years. 2018-01-03 11:03:58 +01:00
src PR libstdc++/85831 define move constructors and operators for exceptions 2018-07-05 22:29:51 +01:00
testsuite PR libstdc++/84928 use std::move in <numeric> algorithms 2018-07-06 15:16:13 +01:00
acinclude.m4 PR libstdc++/83328 add correct basic_string::insert for initializer_list 2018-06-21 23:01:25 +01:00
aclocal.m4
ChangeLog PR libstdc++/84928 use std::move in <numeric> algorithms 2018-07-06 15:16:13 +01:00
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-2016
ChangeLog-2017 Update copyright years. 2018-01-03 11:03:58 +01:00
config.h.in Fix bootstrap failure for bare metal due to autoconf link tests 2018-06-18 17:01:24 +01:00
configure PR libstdc++/83328 add correct basic_string::insert for initializer_list 2018-06-21 23:01:25 +01:00
configure.ac Fix bootstrap failure for bare metal due to autoconf link tests 2018-06-18 17:01:24 +01:00
configure.host
crossconfig.m4 crossconfig.m4: Handle OpenBSD just like NetBSD. 2018-06-18 11:28:53 -06:00
fragment.am
linkage.m4
Makefile.am Update copyright years. 2018-01-03 11:03:58 +01:00
Makefile.in Enable building libstdc++-v3 with Intel CET 2017-11-17 22:28:10 +01:00
README

file: libstdc++-v3/README

New users may wish to point their web browsers to the file
index.html in the 'doc/html' subdirectory.  It contains brief
building instructions and notes on how to configure the library in
interesting ways.