haarcuba / cpp-text-table

C++ text table: format text in tabular form
GNU Lesser General Public License v2.1
143 stars 36 forks source link

Bag ( Segmentation fault (core dumped) ) #1

Closed LAGx closed 4 years ago

LAGx commented 7 years ago

current code work properly: TextTable t( '-', '|', '+' ); t.endOfRow(); t.setAlignment( 2, TextTable::Alignment::RIGHT ); std::cout << t; but without t.endOfRow(); it`s make error: Segmentation fault (core dumped)

haarcuba commented 7 years ago

why would you want to do that? do you want support for an empty table?

lokcito commented 6 years ago

Hello, I was trying in windows with devc++ and when I had ran your example it threw an error: enum class Alignment { LEFT, RIGHT }; }

DevC++ output: TextTable.h [Warning] scoped enums only available with -std=c++11 or -std=gnu++11

haarcuba commented 6 years ago

I see a warning, not an error. Is working with c++11 a problem for you?

you are welcome to submit a pull request with something else.