Simplified namespace nesting.
Refactor virtual setter method name.
This commit is contained in:
Jens Luedicke
2010-09-19 22:37:57 +02:00
parent 6be687ae44
commit db168ca56e
2 changed files with 60 additions and 55 deletions

View File

@@ -4,17 +4,13 @@
#include <boost/lexical_cast.hpp>
namespace settable {
namespace setter {
namespace string2type {
namespace helper {
template<>
int convert<int>(const std::string &value) {
return boost::lexical_cast<int>(value);
}
}
}
}
namespace string2type {
template<>
int convert<int>(const std::string &value) {
return boost::lexical_cast<int>(value);
}
}
struct foo : settable::settable {
@@ -32,4 +28,4 @@ int main(int argc, char *argv) {
std::cout << f.x << std::endl;
return 0;
}
}