full error msg at one place

This commit is contained in:
qPCR4vir
2019-04-14 23:28:28 +02:00
parent 7830f430c0
commit 1d2e489c7f
2 changed files with 24 additions and 19 deletions

View File

@@ -59,8 +59,7 @@ namespace nana
error(std::string what,
const tokenizer& tok)
: std::invalid_argument{ what + " from tokenizer at position "
+ std::to_string(static_cast<unsigned>(tok.sp_ - tok.divstr_)) },
: std::invalid_argument{ what + " from tokenizer " },
pos{static_cast<std::string::size_type>(tok.sp_ - tok.divstr_)}
{}
std::string::size_type pos;