diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:10:11 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:10:11 +0200 |
commit | c0cdb2ad99a1e2a6ade5ce76c91177a79258e669 (patch) | |
tree | 4701a015385d9a6a5a4ba99a8f1f5d400fff26b1 /shared/com_ptr.h | |
parent | 3.13 (diff) | |
download | FreeFileSync-c0cdb2ad99a1e2a6ade5ce76c91177a79258e669.tar.gz FreeFileSync-c0cdb2ad99a1e2a6ade5ce76c91177a79258e669.tar.bz2 FreeFileSync-c0cdb2ad99a1e2a6ade5ce76c91177a79258e669.zip |
3.14
Diffstat (limited to 'shared/com_ptr.h')
-rw-r--r-- | shared/com_ptr.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shared/com_ptr.h b/shared/com_ptr.h index f8331220..6c7a62ab 100644 --- a/shared/com_ptr.h +++ b/shared/com_ptr.h @@ -46,13 +46,13 @@ public: private: T* ptr; - struct ConversionToBool + struct ConversionToBool { int dummy; }; public: - operator int ConversionToBool::*() const; //use member pointer as implicit conversion to bool (C++ Templates - Vandevoorde/Josuttis; chapter 20) + operator int ConversionToBool::* () const; //use member pointer as implicit conversion to bool (C++ Templates - Vandevoorde/Josuttis; chapter 20) }; @@ -181,7 +181,7 @@ ComPtr<T>::operator bool() const template <class T> inline -ComPtr<T>::operator int ComPtr<T>::ConversionToBool::*() const +ComPtr<T>::operator int ComPtr<T>::ConversionToBool::* () const { return ptr != NULL ? &ConversionToBool::dummy : NULL; } |