|
|
От: | shank | |
| Дата: | 12.09.06 12:30 | ||
| Оценка: | |||
typedef void (*PF)();
void fun() {}
int main()
{
PF pf = &fun;
void* p = reinterpret_cast<void*>(pf);
}"ComeauTest.c", line 7: error: invalid type conversion
void* p = reinterpret_cast<void*>(pf);
^— a const_cast
— a static_cast
— a static_cast followed by a const_cast,
— a reinterpret_cast
— a reinterpret_cast followed by a const_cast
|
|
От: | shank | |
| Дата: | 12.09.06 12:34 | ||
| Оценка: | |||
S>— a const_cast
S>— a static_cast
S>— a static_cast followed by a const_cast,
S>— a reinterpret_cast
S>— a reinterpret_cast followed by a const_cast