1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-08-03 21:27:07 +01:00

Namespace, nvcc warning elimination.

This commit is contained in:
paboyle
2018-01-24 13:14:43 +00:00
parent 87ee592176
commit 22d137d4e5
8 changed files with 67 additions and 75 deletions

View File

@@ -43,7 +43,7 @@ namespace Grid
class TextWriter: public Writer<TextWriter>
{
public:
TextWriter(const std::string &fileName);
TextWriter(const std::string &fileName) : file_(fileName, std::ios::out) {};
virtual ~TextWriter(void) = default;
void push(const std::string &s);
void pop(void);
@@ -65,10 +65,8 @@ namespace Grid
virtual ~TextReader(void) = default;
bool push(const std::string &s);
void pop(void);
template <typename U>
void readDefault(const std::string &s, U &output);
template <typename U>
void readDefault(const std::string &s, std::vector<U> &output);
template <typename U> void readDefault(const std::string &s, U &output);
template <typename U> void readDefault(const std::string &s, std::vector<U> &output);
private:
void checkIndent(void);
private:
@@ -97,6 +95,8 @@ namespace Grid
}
// Reader template implementation ////////////////////////////////////////////
template <> void TextReader::readDefault(const std::string &s, std::string &output);
template <typename U>
void TextReader::readDefault(const std::string &s, U &output)
{
@@ -106,8 +106,6 @@ namespace Grid
fromString(output, buf);
}
template <>
void TextReader::readDefault(const std::string &s, std::string &output);
template <typename U>
void TextReader::readDefault(const std::string &s, std::vector<U> &output)