|
|
От: | Cruelty | |
| Дата: | 04.01.10 15:20 | ||
| Оценка: | 38 (2) | ||
#include <iostream>
#include <string>
struct C
{
std::string b;
};
template <typename Type, Type> struct Helper;
template <typename T, typename Type> char Finder(Helper<Type, &T::b>*);
int main()
{
std::cout << sizeof(Finder<C, std::string C::*>(0)) << std::endl;
}