Added default constructors as required by newer G++ and C++11

This commit is contained in:
Keith Winstein
2011-10-13 01:49:36 -04:00
parent 80f34faadd
commit a01662f126
2 changed files with 23 additions and 0 deletions
+15
View File
@@ -43,6 +43,15 @@ namespace Terminal {
renditions( background_color )
{}
Cell() /* default constructor required by C++11 STL */
: contents(),
fallback( false ),
width( 1 ),
renditions( 0 )
{
assert( false );
}
void reset( int background_color );
bool operator==( const Cell &x ) const
@@ -63,6 +72,12 @@ namespace Terminal {
: cells( s_width, Cell( background_color ) ), wrap( false )
{}
Row() /* default constructor required by C++11 STL */
: cells( 1, Cell() ), wrap( false )
{
assert( false );
}
void insert_cell( int col, int background_color );
void delete_cell( int col, int background_color );