improve listbox model_guard exception information

This commit is contained in:
Jinhao 2017-08-02 00:14:39 +08:00
parent 2853c652e5
commit 12843da679

View File

@ -535,7 +535,7 @@ namespace nana
throw std::invalid_argument("invalid listbox model container type");
if (nullptr == p->pointer())
throw std::runtime_error("the modal is immutable");
throw std::runtime_error("the modal is immutable, please declare model_guard with const");
return *static_cast<stlcontainer*>(p->pointer());
}