Skip to content

Commit 2f3eaca

Browse files
rengzhengcodesangshuman-parashar
authored andcommitted
promised YNode const, cast for clang
1 parent bb04d2b commit 2f3eaca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/compound-config/compound-config.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class CompoundConfigNode
5151
CompoundConfigNode(libconfig::Setting* _lnode, YAML::Node _ynode, CompoundConfig* _cConfig);
5252

5353
libconfig::Setting& getLNode() {return *LNode;}
54-
YAML::Node getYNode() {return YNode;}
54+
YAML::Node getYNode() {return YNode;} const
5555

5656
/**
5757
* @brief return compound config node corresponding with `path`.

src/unit-tests/compound-config/test-compound-config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ bool mapNodeEq( const config::CompoundConfigNode CNode, const YAML::Node YNode,
351351
* valid child type. */
352352
default:
353353
std::cout << "!!! UNIT TEST ERROR !!!" << std::endl;
354-
throw std::invalid_argument("YAML type is invalid: " + TYPE);
354+
throw std::invalid_argument("YAML type is invalid: " + std::to_string(TYPE));
355355
break;
356356
}
357357

0 commit comments

Comments
 (0)