Skip to content

Instantly share code, notes, and snippets.

@drodil
Created September 28, 2018 12:20
Show Gist options
  • Save drodil/bc7d2f1766368fc4d28e609e4e0e3e93 to your computer and use it in GitHub Desktop.
Save drodil/bc7d2f1766368fc4d28e609e4e0e3e93 to your computer and use it in GitHub Desktop.
// test_class.hpp
#include <iosfwd>
class TestClass {
public:
TestClass() = default;
void hello_to_stream(std::stringstream& ss) const noexcept;
};
// test_class.cpp
#include "test_class.hpp"
#include <sstream>
void TestClass::hello_to_stream(std::stringstream& ss) const noexcept {
ss << "HELLO";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment