Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 8 years ago

Language

Compiler

Options

Author

anonymous

about 8 years ago

$
prog.cc:10:29: error: expected ';' at end of member declaration
   void call( signed inc = 1 ) conts {
                             ^
                              ;
prog.cc:10:31: error: 'conts' does not name a type
   void call( signed inc = 1 ) conts {
                               ^~~~~
prog.cc:19:49: error: expected ',' or '...' before '}' token
   Ensure< T, FUNC >( const Ensure< T, FUNC > &o } : value{ o.value }, temp{ false } { call( ); }
                                                 ^
prog.cc:19:49: error: expected ')' before '}' token
prog.cc:19:47: error: expected ';' at end of member declaration
   Ensure< T, FUNC >( const Ensure< T, FUNC > &o } : value{ o.value }, temp{ false } { call( ); }
                                               ^
                                                ;
prog.cc:19:50: error: expected ';' after class definition
   Ensure< T, FUNC >( const Ensure< T, FUNC > &o } : value{ o.value }, temp{ false } { call( ); }
                                                  ^
                                                  ;
prog.cc:19:51: error: expected unqualified-id before ':' token
   Ensure< T, FUNC >( const Ensure< T, FUNC > &o } : value{ o.value }, temp{ false } { call( ); }
                                                   ^
prog.cc:19:69: error: expected unqualified-id before ',' token
   Ensure< T, FUNC >( const Ensure< T, FUNC > &o } : value{ o.value }, temp{ false } { call( ); }
                                                                     ^
prog.cc:19:75: error: expected constructor, destructor, or type conversion before '{' token
   Ensure< T, FUNC >( const Ensure< T, FUNC > &o } : value{ o.value }, temp{ false } { call( ); }
                                                                           ^
prog.cc:19:85: error: expected unqualified-id before '{' token
   Ensure< T, FUNC >( const Ensure< T, FUNC > &o } : value{ o.value }, temp{ false } { call( ); }
                                                                                     ^
prog.cc:20:11: error: 'T' was not declared in this scope
   Ensure< T, FUNC >( Ensure< T, FUNC > &&o ) : value{ o.value }, temp{ false } { o.temp = true; }
           ^
prog.cc:20:14: error: 'FUNC' was not declared in this scope
   Ensure< T, FUNC >( Ensure< T, FUNC > &&o ) : value{ o.value }, temp{ false } { o.temp = true; }
              ^~~~
prog.cc:20:19: error: template argument 1 is invalid
   Ensure< T, FUNC >( Ensure< T, FUNC > &&o ) : value{ o.value }, temp{ false } { o.temp = true; }
                   ^
prog.cc:20:19: error: template argument 2 is invalid
prog.cc:20:30: error: 'T' was not declared in this scope
   Ensure< T, FUNC >( Ensure< T, FUNC > &&o ) : value{ o.value }, temp{ false } { o.temp = true; }
                              ^
prog.cc:20:33: error: 'FUNC' was not declared in this scope
   Ensure< T, FUNC >( Ensure< T, FUNC > &&o ) : value{ o.value }, temp{ false } { o.temp = true; }
                                 ^~~~
prog.cc:20:38: error: template argument 1 is invalid
   Ensure< T, FUNC >( Ensure< T, FUNC > &&o ) : value{ o.value }, temp{ false } { o.temp = true; }
                                      ^
prog.cc:20:38: error: template argument 2 is invalid
prog.cc:20:64: error: expected unqualified-id before ',' token
   Ensure< T, FUNC >( Ensure< T, FUNC > &&o ) : value{ o.value }, temp{ false } { o.temp = true; }
                                                                ^
prog.cc:20:70: error: expected constructor, destructor, or type conversion before '{' token
   Ensure< T, FUNC >( Ensure< T, FUNC > &&o ) : value{ o.value }, temp{ false } { o.temp = true; }
                                                                      ^
prog.cc:20:80: error: expected unqualified-id before '{' token
   Ensure< T, FUNC >( Ensure< T, FUNC > &&o ) : value{ o.value }, temp{ false } { o.temp = true; }
                                                                                ^
prog.cc:22:11: error: 'T' was not declared in this scope
   Ensure< T, FUNC >( const T &v ) : value{ v }, temp{ false } { call( ); }
           ^
prog.cc:22:14: error: 'FUNC' was not declared in this scope
   Ensure< T, FUNC >( const T &v ) : value{ v }, temp{ false } { call( ); }
              ^~~~
prog.cc:22:19: error: template argument 1 is invalid
   Ensure< T, FUNC >( const T &v ) : value{ v }, temp{ false } { call( ); }
                   ^
prog.cc:22:19: error: template argument 2 is invalid
prog.cc:22:47: error: expected unqualified-id before ',' token
   Ensure< T, FUNC >( const T &v ) : value{ v }, temp{ false } { call( ); }
                                               ^
prog.cc:22:53: error: expected constructor, destructor, or type conversion before '{' token
   Ensure< T, FUNC >( const T &v ) : value{ v }, temp{ false } { call( ); }
                                                     ^
prog.cc:22:63: error: expected unqualified-id before '{' token
   Ensure< T, FUNC >( const T &v ) : value{ v }, temp{ false } { call( ); }
                                                               ^
prog.cc:23:11: error: 'T' was not declared in this scope
   Ensure< T, FUNC >( T &&v ) : value{ v }, temp{ false } { call( ); }
           ^
prog.cc:23:14: error: 'FUNC' was not declared in this scope
   Ensure< T, FUNC >( T &&v ) : value{ v }, temp{ false } { call( ); }
              ^~~~
prog.cc:23:19: error: template argument 1 is invalid
   Ensure< T, FUNC >( T &&v ) : value{ v }, temp{ false } { call( ); }
                   ^
prog.cc:23:19: error: template argument 2 is invalid
prog.cc:23:24: error: expected ')' before '&&' token
   Ensure< T, FUNC >( T &&v ) : value{ v }, temp{ false } { call( ); }
                    ~   ^~
prog.cc:23:42: error: expected unqualified-id before ',' token
   Ensure< T, FUNC >( T &&v ) : value{ v }, temp{ false } { call( ); }
                                          ^
prog.cc:23:48: error: expected constructor, destructor, or type conversion before '{' token
   Ensure< T, FUNC >( T &&v ) : value{ v }, temp{ false } { call( ); }
                                                ^
prog.cc:23:58: error: expected unqualified-id before '{' token
   Ensure< T, FUNC >( T &&v ) : value{ v }, temp{ false } { call( ); }
                                                          ^
prog.cc:25:3: error: 'T' does not name a type
   T &operator*( ) { return value; }
   ^
prog.cc:26:9: error: 'T' does not name a type
   const T &operator*( ) const { return value; }
         ^
prog.cc:27:3: error: 'T' does not name a type
   T *operator->( ) { return &value; }
   ^
prog.cc:28:9: error: 'T' does not name a type
   const T *operator->( ) const { return &value; }
         ^
prog.cc:29:1: error: expected declaration before '}' token
 };
 ^
Exit Code:
1