std_valarray.h (valarray<>::operator[] const): Return a const reference.
authorGabriel Dos Reis <gdr@gcc.gnu.org>
Fri, 18 May 2001 05:47:46 +0000 (05:47 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Fri, 18 May 2001 05:47:46 +0000 (05:47 +0000)
commit5c542b4a1934271e41e4156d2a78f1ea80baf2a1
treec967660c82a2fb3597f0b28d0a6f0741086dce8c
parenta75b7b0bd7d15075936cce6902742d1a495b506b
std_valarray.h (valarray<>::operator[] const): Return a const reference.

        * include/bits/std_valarray.h (valarray<>::operator[] const):
        Return a const reference.
        * testsuite/26_numerics/valarray_const_bracket.cc: New test.

From-SVN: r42245
libstdc++-v3/include/bits/std_valarray.h
libstdc++-v3/testsuite/26_numerics/valarray_const_bracket.cc [new file with mode: 0644]