From 3deac24d7e432e19188200572f44e5bb81beea4a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 20 Sep 2009 18:32:39 +0200 Subject: Return type_info as const reference --- cutl/container/any.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cutl/container') 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_); -- cgit v1.1