#include #include #include "typetype.h" template Return chop(Argument const &arg, TypeType ) { return Return{ arg }; } template std::string chop(Argument const &arg, TypeType ) { return std::string{ arg, 1 }; } template Result chop(Arg txt) { return chop(std::string{ txt }, TypeType{} ); } using namespace std; int main() { cout << chop("hello world") << '\n'; }