Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 336 vs 337 for /trunk/Source Code/Core/Headers/cdigginsAny.h

Diff revisions: vs.
  @@ -199,22 +199,22 @@
199 199 }
200 200
201 201 template<typename T>
202 - inline T& cast() {
202 + inline T& cast() {
203 203 return *(reinterpret_cast<T*>(policy->get_value(&object)));
204 204 }
205 205
206 - /// Cast operator. You can only cast to the original type.
207 - template<typename T>
208 - inline const T& constant_cast(bool& success) const {
209 - success = (policy == anyimpl::get_policy<T>());
210 - return this->constant_cast<T>();
211 - }
206 + /// Cast operator. You can only cast to the original type.
207 + template<typename T>
208 + inline const T& constant_cast(bool& success) const {
209 + success = (policy == anyimpl::get_policy<T>());
210 + return this->constant_cast<T>();
211 + }
212 212
213 - template<typename T>
214 - inline T& cast(bool& success) {
215 - success = (policy == anyimpl::get_policy<T>());
216 - return this->cast<T>();
217 - }
213 + template<typename T>
214 + inline T& cast(bool& success) {
215 + success = (policy == anyimpl::get_policy<T>());
216 + return this->cast<T>();
217 + }
218 218 /// Returns true if the any contains no value.
219 219 bool empty() const {
220 220 return policy == anyimpl::get_policy<anyimpl::empty_any>();