prog.cpp:1:1: error: ‘include’ does not name a type
include <iostream>
^
prog.cpp:21:20: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
operator const int8_t() const {
^
prog.cpp:21:5: error: ‘operator const int’ does not name a type
operator const int8_t() const {
^
prog.cpp:25:20: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
operator const timeval() const {
^
prog.cpp:25:5: error: ‘operator const int’ does not name a type
operator const timeval() const {
^
prog.cpp:29:5: error: ‘P’ does not name a type
P _p;
^
prog.cpp: In function ‘int main()’:
prog.cpp:36:5: error: ‘timeval’ was not declared in this scope
timeval ret = static_cast<timeval>(testobj);
^
prog.cpp:36:13: error: expected ‘;’ before ‘ret’
timeval ret = static_cast<timeval>(testobj);
^