- Timestamp:
- Nov 22, 2015, 4:55:02 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/test/core/command/FunctorPtrTest.cc
r10822 r10825 11 11 void testMember() {} 12 12 static void testStatic() {} 13 }; 14 15 class Subclass : public Testclass 16 { 13 17 }; 14 18 … … 71 75 ASSERT_TRUE(static_cast<bool>(ptr2)); 72 76 } 77 78 TEST_F(FunctorPtrTest, canCastToFunctorMemberOfSubclass) 79 { 80 FunctorPtr ptr1 = createFunctor(&Subclass::testMember); 81 FunctorMemberPtr<Subclass> ptr2 = std::static_pointer_cast<FunctorMember<Subclass>>(ptr1); 82 ASSERT_TRUE(static_cast<bool>(ptr2)); 83 } 73 84 }
Note: See TracChangeset
for help on using the changeset viewer.