Changeset 121
- Timestamp:
- 11/10/07 11:57:20 (1 year ago)
- Files:
-
- trunk/cbear.berlios.de/cast/test.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cbear.berlios.de/cast/test.cpp
r114 r121 12 12 #include <cbear.berlios.de/cast/explicit.hpp> 13 13 #include <cbear.berlios.de/cast/default.hpp> 14 15 #include <iostream> 14 16 15 17 class MyClass … … 43 45 void g() 44 46 { 47 } 48 }; 49 50 struct throw_sfinae 51 { 52 struct sfinae 53 { 54 }; 55 explicit throw_sfinae(int) 56 { 57 throw sfinae(); 45 58 } 46 59 }; … … 86 99 p; 87 100 int* p1 = cast::reinterpret::value(i1); 101 try 102 { 103 d dd; 104 throw_sfinae &ts = cast::dynamic::ref(dd); 105 } 106 catch(...) 107 { 108 ::std::cout << "Good" << ::std::endl; 109 } 88 110 }