mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 05:16:10 +01:00
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:
parent
05786fa7ec
commit
597ce12b65
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user