in include/poac/core/semver.hpp [533:560]
void is_bounded_interval() {
if (Version(first_version) < second_version) {
if ((first_comp_op == "<" || first_comp_op == "<=")
&& (second_comp_op == ">" || second_comp_op == ">="))
{
throw exception::error(
"`" + name + ": " + interval + "` is strange.\n"
"In this case of interval specification using `and`,\n"
" it is necessary to be a bounded interval.\n"
"Please specify as in the following example:\n"
"e.g. `" + second_comp_op + first_version + " and "
+ first_comp_op + second_version + "`");
}
}
else if (Version(first_version) > second_version) {
if ((first_comp_op == ">" || first_comp_op == ">=")
&& (second_comp_op == "<" || second_comp_op == "<="))
{
throw exception::error(
"`" + name + ": " + interval + "` is strange.\n"
"In this case of interval specification using `and`,\n"
" it is necessary to be a bounded interval.\n"
"Please specify as in the following example:\n"
"e.g. `" + first_comp_op + second_version + " and "
+ second_comp_op + first_version + "`");
}
}
}