diff --git a/src/attributes.hpp b/src/attributes.hpp index 62b1710..2991a95 100644 --- a/src/attributes.hpp +++ b/src/attributes.hpp @@ -19,6 +19,8 @@ #include #include +#include +#include #include //! @@ -47,6 +49,7 @@ public: //! explicit attribute(T &object) : reference(object) { + BOOST_CONCEPT_ASSERT((boost::Assignable)); } //! diff --git a/src/string2type.hpp b/src/string2type.hpp index 67d9fdc..3d04c3f 100644 --- a/src/string2type.hpp +++ b/src/string2type.hpp @@ -16,6 +16,8 @@ #include +#include +#include #include namespace string2type { @@ -25,6 +27,8 @@ namespace string2type { //! template T convert(const std::string &value) { + BOOST_CONCEPT_ASSERT((boost::Assignable)); + return boost::lexical_cast(value); }