copy/libcopy-test/copy-test.cxx
RYAN 67a74bb7bb
Some checks failed
on-push / build-and-test (push) Failing after 7s
wip
2024-09-02 01:43:44 +02:00

18 lines
287 B
C++

#include <libcopy-test/copy-test.hxx>
#include <ostream>
#include <stdexcept>
using namespace std;
namespace copy_test
{
void say_hello (ostream& o, const string& n)
{
if (n.empty ())
throw invalid_argument ("empty name");
o << "Hello, " << n << '!' << endl;
}
}