fix pretty printer for recursive types
This commit is contained in:
parent
310d119ffb
commit
4d25fc25c4
5 changed files with 396 additions and 388 deletions
14
include/soi
14
include/soi
|
|
@ -8,7 +8,7 @@
|
|||
#include <fstream>
|
||||
#include "bits/soi-dbg.hpp"
|
||||
|
||||
namespace soi_h {
|
||||
namespace soi {
|
||||
|
||||
void check_for_eof() {
|
||||
if (!(std::cin >> std::ws).eof())
|
||||
|
|
@ -52,11 +52,11 @@ void initialize_debug() {
|
|||
std::atexit(noninteractive_check_eof) != 0) {
|
||||
std::cerr << "WARNING: soi.h -- registration of sanity check at exit failed\n";
|
||||
}
|
||||
soi_h::detail::dbg_init();
|
||||
soi::detail::dbg_init();
|
||||
}
|
||||
|
||||
struct soi_h_initializer {
|
||||
soi_h_initializer(bool release) {
|
||||
struct soi_initializer {
|
||||
soi_initializer(bool release) {
|
||||
if (release) {
|
||||
std::ios::sync_with_stdio(false);
|
||||
std::cin.tie(0);
|
||||
|
|
@ -67,12 +67,12 @@ struct soi_h_initializer {
|
|||
};
|
||||
|
||||
#ifdef SOI_RELEASE
|
||||
soi_h_initializer soi_h_initializer_{true};
|
||||
soi_initializer soi_initializer_{true};
|
||||
#else
|
||||
soi_h_initializer soi_h_initializer_{false};
|
||||
soi_initializer soi_initializer_{false};
|
||||
#endif
|
||||
|
||||
} // end namespace soi_h
|
||||
} // end namespace soi
|
||||
|
||||
#include "bits/soi-deprecate.hpp"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue