tap: prohibit copy operators and all assignment operators
This commit is contained in:
parent
6cab42d171
commit
1b3147ded7
11
tap.hpp
11
tap.hpp
@ -31,9 +31,20 @@ namespace cruft::TAP {
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
logger ();
|
||||
|
||||
logger (std::ostream&);
|
||||
~logger ();
|
||||
|
||||
// NOTE: explicitly disable copy constructors and all assignment
|
||||
// operators so that we don't accidentally overwrite the contained
|
||||
// status code in any instance. This value is required in all
|
||||
// instances so that we can return the correct status code from a test
|
||||
// binary.
|
||||
logger (logger&&) = default;
|
||||
logger (logger const &) = delete;
|
||||
logger& operator= (logger const &) = delete;
|
||||
logger& operator= (logger &&) = delete;
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
template <typename ...Args, size_t N>
|
||||
bool
|
||||
|
Loading…
Reference in New Issue
Block a user