[Assorted-commits] SF.net SVN: assorted:[1347] cpp-commons/trunk/src/commons/closing.h
Brought to you by:
yangzhang
From: <yan...@us...> - 2009-04-29 02:07:43
|
Revision: 1347 http://assorted.svn.sourceforge.net/assorted/?rev=1347&view=rev Author: yangzhang Date: 2009-04-29 02:07:36 +0000 (Wed, 29 Apr 2009) Log Message: ----------- const tweaks Modified Paths: -------------- cpp-commons/trunk/src/commons/closing.h Modified: cpp-commons/trunk/src/commons/closing.h =================================================================== --- cpp-commons/trunk/src/commons/closing.h 2009-04-29 02:07:17 UTC (rev 1346) +++ cpp-commons/trunk/src/commons/closing.h 2009-04-29 02:07:36 UTC (rev 1347) @@ -21,8 +21,8 @@ public: closing(T x) : x(x), scoped(true) {} ~closing() { if (scoped) Closer::apply(x); } - T get() { return x; } - operator T() { return x; } + T get() const { return x; } + operator T() const { return x; } T release() { scoped = false; return x; } private: T x; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |