From d28ec4eeeb328901ecd47ee6ded2a92c7e56009c Mon Sep 17 00:00:00 2001 From: Jens Luedicke Date: Sun, 23 Jan 2011 02:15:46 +0100 Subject: [PATCH] Added boost concept checks. --- src/attributes.hpp | 3 +++ src/string2type.hpp | 4 ++++ 2 files changed, 7 insertions(+) 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); }