Renumbered
| Forum | Thread | Replies | Latest activity |
|---|---|---|---|
| Tech Off | [C++] What is the function type | 4 | Mar 01, 2011 at 1:23 PM |
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
| Forum | Thread | Replies | Latest activity |
|---|---|---|---|
| Tech Off | [C++] What is the function type | 4 | Mar 01, 2011 at 1:23 PM |
C9 Lectures: Stephan T Lavavej - Advanced STL, 1 of n
Mar 01, 2011 at 4:45 AM@STL:sorry, i thought my telepathic powers worked at that distance
Here's guard:
template <typename F> class guard { F m_func; public: explicit guard(F func) : m_func(func) {} ~guard() { m_func(123); } };C9 Lectures: Stephan T Lavavej - Advanced STL, 1 of n
Feb 28, 2011 at 2:01 PMQuick question
What is the function type (i think it's called that) for this functor
struct S_FUNC { void operator()(int i) const { } }; S_FUNC func; guard<void (*)(int)> g(func);For some reason, vs2010 doesn't think it is "void (*)(int)"
so if it's not that then what is it ?