aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-09-20 18:32:39 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-09-20 18:32:39 +0200
commit3deac24d7e432e19188200572f44e5bb81beea4a (patch)
tree7decc7393b6a719a5af88631cec04db9eb8ac6d8
parent50e741126a0840179b86cf2302905e30dad6f75f (diff)
Return type_info as const reference
-rw-r--r--cutl/container/any.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cutl/container/any.hxx b/cutl/container/any.hxx
index 4fd05b5..061c201 100644
--- a/cutl/container/any.hxx
+++ b/cutl/container/any.hxx
@@ -85,7 +85,7 @@ namespace cutl
virtual holder*
clone () const = 0;
- virtual std::type_info&
+ virtual std::type_info const&
type_info () const = 0;
};
@@ -104,7 +104,7 @@ namespace cutl
return new holder_impl (x_);
}
- virtual std::type_info&
+ virtual std::type_info const&
type_info () const
{
return typeid (x_);