|
From: <ag...@us...> - 2011-01-02 00:42:02
|
Revision: 1840
http://zoolib.svn.sourceforge.net/zoolib/?rev=1840&view=rev
Author: agreen
Date: 2011-01-02 00:41:56 +0000 (Sun, 02 Jan 2011)
Log Message:
-----------
Several times I've passed a ZQ rather than the result of
its Get. I can't think of a circumstance where that would
be what we want, so I'm providing private ctor/assign to
disable that.
Modified Paths:
--------------
trunk/zoolib/source/cxx/zoolib/ZVal_Any.h
Modified: trunk/zoolib/source/cxx/zoolib/ZVal_Any.h
===================================================================
--- trunk/zoolib/source/cxx/zoolib/ZVal_Any.h 2011-01-02 00:36:23 UTC (rev 1839)
+++ trunk/zoolib/source/cxx/zoolib/ZVal_Any.h 2011-01-02 00:41:56 UTC (rev 1840)
@@ -45,6 +45,10 @@
class ZVal_Any : public ZAny
{
+// private, to catch the common error of passing a ZQ.
+ template <class S> ZVal_Any(const ZQ<S>&);
+ template <class S> ZVal_Any& operator=(const ZQ<S>&);
+
public:
const ZAny& AsAny() const
{ return *this; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|