forked from boostorg/regex
Fixed const-correctness bugs.
[SVN r34785]
This commit is contained in:
@ -48,7 +48,7 @@ int test_main(int /*argc*/, char * /*argv*/[])
|
|||||||
int i;
|
int i;
|
||||||
for(i = 0; i < 20; ++i)
|
for(i = 0; i < 20; ++i)
|
||||||
{
|
{
|
||||||
boost::shared_ptr<test_object> p = boost::object_cache<int, test_object>::get(i, max_cache_size);
|
boost::shared_ptr<const test_object> p = boost::object_cache<int, test_object>::get(i, max_cache_size);
|
||||||
BOOST_CHECK(p->value() == i);
|
BOOST_CHECK(p->value() == i);
|
||||||
p = boost::object_cache<int, test_object>::get(i, max_cache_size);
|
p = boost::object_cache<int, test_object>::get(i, max_cache_size);
|
||||||
BOOST_CHECK(p->value() == i);
|
BOOST_CHECK(p->value() == i);
|
||||||
@ -63,7 +63,7 @@ int test_main(int /*argc*/, char * /*argv*/[])
|
|||||||
{
|
{
|
||||||
for(i = 20 - max_cache_size; i < 20; ++i)
|
for(i = 20 - max_cache_size; i < 20; ++i)
|
||||||
{
|
{
|
||||||
boost::shared_ptr<test_object> p = boost::object_cache<int, test_object>::get(i, max_cache_size);
|
boost::shared_ptr<const test_object> p = boost::object_cache<int, test_object>::get(i, max_cache_size);
|
||||||
BOOST_CHECK(p->value() == i);
|
BOOST_CHECK(p->value() == i);
|
||||||
p = boost::object_cache<int, test_object>::get(i, max_cache_size);
|
p = boost::object_cache<int, test_object>::get(i, max_cache_size);
|
||||||
BOOST_CHECK(p->value() == i);
|
BOOST_CHECK(p->value() == i);
|
||||||
@ -75,3 +75,4 @@ int test_main(int /*argc*/, char * /*argv*/[])
|
|||||||
|
|
||||||
#include <boost/test/included/test_exec_monitor.hpp>
|
#include <boost/test/included/test_exec_monitor.hpp>
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user