use \n instead of endl
parent
9bb07851c3
commit
4756f7359d
|
@ -83,8 +83,8 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Virtual print function, uses traits
|
/// Virtual print function, uses traits
|
||||||
virtual void print(const std::string& str) const {
|
virtual void print(const std::string& str) const override {
|
||||||
std::cout << "(" << demangle(typeid(T).name()) << ") " << std::endl;
|
std::cout << "(" << demangle(typeid(T).name()) << ")\n";
|
||||||
traits<T>::Print(value_, str);
|
traits<T>::Print(value_, str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -75,8 +75,8 @@ namespace gtsam {
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
void Values::print(const string& str, const KeyFormatter& keyFormatter) const {
|
void Values::print(const string& str, const KeyFormatter& keyFormatter) const {
|
||||||
cout << str << endl;
|
cout << str << (str == "" ? "" : "\n");
|
||||||
cout << "Values with " << size() << " values:" << endl;
|
cout << "Values with " << size() << " values:\n";
|
||||||
for(const_iterator key_value = begin(); key_value != end(); ++key_value) {
|
for(const_iterator key_value = begin(); key_value != end(); ++key_value) {
|
||||||
cout << "Value " << keyFormatter(key_value->key) << ": ";
|
cout << "Value " << keyFormatter(key_value->key) << ": ";
|
||||||
key_value->value.print("");
|
key_value->value.print("");
|
||||||
|
|
Loading…
Reference in New Issue