summaryrefslogtreecommitdiff
path: root/gentoobrowse-api/domain/converters.impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'gentoobrowse-api/domain/converters.impl.h')
-rw-r--r--gentoobrowse-api/domain/converters.impl.h28
1 files changed, 12 insertions, 16 deletions
diff --git a/gentoobrowse-api/domain/converters.impl.h b/gentoobrowse-api/domain/converters.impl.h
index 894d0de..6ba15fa 100644
--- a/gentoobrowse-api/domain/converters.impl.h
+++ b/gentoobrowse-api/domain/converters.impl.h
@@ -2,24 +2,21 @@
#define GENTOOBROWSE_API_DOMAIN_CONVERTERS_IMPL_H
#include "unpackPqTextArray.h"
+#include <boost/lexical_cast.hpp>
namespace Slicer {
- template <typename T>
- class UnpackPqTextArrayInto : public UnpackPqTextArray {
- public:
- UnpackPqTextArrayInto(std::istream & s, std::vector<T> & l) :
- UnpackPqTextArray(s),
- list(l)
- {
- }
+ template<typename T> class UnpackPqTextArrayInto : public UnpackPqTextArray {
+ public:
+ UnpackPqTextArrayInto(std::istream & s, std::vector<T> & l) : UnpackPqTextArray(s), list(l) { }
- virtual void consume(const std::string & s) override
- {
- list.push_back(boost::lexical_cast<T>(s));
- }
+ virtual void
+ consume(const std::string & s) override
+ {
+ list.push_back(boost::lexical_cast<T>(s));
+ }
- private:
- std::vector<T> & list;
+ private:
+ std::vector<T> & list;
};
std::string
@@ -45,7 +42,7 @@ namespace Slicer {
}
}
- template <typename T>
+ template<typename T>
std::vector<T>
unpackPqArray(const std::string & s)
{
@@ -77,4 +74,3 @@ namespace Slicer {
}
#endif
-