C++: Clean up multiply defined functions.

This commit is contained in:
Geoffrey White
2020-09-15 11:28:22 +01:00
parent c17ae3ad6c
commit 4d6125841d
2 changed files with 8 additions and 8 deletions

View File

@@ -14,10 +14,10 @@ char *user_input() {
return source();
}
void sink(const char *s) {};
void sink(const std::string &s) {};
void sink(const char *s);
void sink(const std::string &s);
void sink(const char *filename, const char *mode);
void sink(char) {}
void sink(char);
void test_string()
{

View File

@@ -10,18 +10,18 @@ namespace ns_char
char source();
}
void sink(int i) {};
void sink(int i);
void sink(const std::string &s) {};
void sink(const std::string &s);
template<class charT>
void sink(const std::basic_ostream<charT> &s) {};
void sink(const std::basic_ostream<charT> &s);
template<class charT>
void sink(const std::basic_istream<charT> &s) {};
void sink(const std::basic_istream<charT> &s);
template<class charT>
void sink(const std::basic_iostream<charT> &s) {};
void sink(const std::basic_iostream<charT> &s);
void test_stringstream_string(int amount)
{