blob: bceb2683d54ef1316c276bcfa0ab9dee9cc976d2 [file] [log] [blame] [edit]
#include "examples/cpp/hello-lib.h"
#include <iostream>
using std::cout;
using std::endl;
using std::string;
namespace hello {
HelloLib::HelloLib(const string& greeting) : greeting_(new string(greeting)) {
}
void HelloLib::greet(const string& thing) {
cout << *greeting_ << " " << thing << endl;
}
} // namespace hello