reporters: silence -Wsubobject-linkage

gcc emits `Wsubobject-linkage`, because the the publicly visible
`TablePrinter` contains `ColumnInfo`, which is part of an anonymous
namespace
This commit is contained in:
Tim Blechmann 2024-01-10 17:42:46 +08:00 committed by Martin Hořeňovský
parent 05786fa7ec
commit 597ce12b65
1 changed files with 8 additions and 7 deletions

View File

@ -209,13 +209,6 @@ findMax( std::size_t& i, std::size_t& j, std::size_t& k, std::size_t& l ) {
return l; return l;
} }
enum class Justification { Left, Right };
struct ColumnInfo {
std::string name;
std::size_t width;
Justification justification;
};
struct ColumnBreak {}; struct ColumnBreak {};
struct RowBreak {}; struct RowBreak {};
struct OutputFlush {}; struct OutputFlush {};
@ -293,6 +286,14 @@ public:
}; };
} // end anon namespace } // end anon namespace
enum class Justification { Left, Right };
struct ColumnInfo {
std::string name;
std::size_t width;
Justification justification;
};
class TablePrinter { class TablePrinter {
std::ostream& m_os; std::ostream& m_os;
std::vector<ColumnInfo> m_columnInfos; std::vector<ColumnInfo> m_columnInfos;