Update channels.cpp

This commit is contained in:
Anthony Wang 2021-04-27 20:29:54 -05:00 committed by GitHub
parent 0ab80e0a0e
commit 9a450cca8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,8 +21,8 @@ int main() {
channel c;
int x = 1;
c.write(x);
std::cout << std::any_cast<int>(c.read()) << endl;
std::cout << std::any_cast<int>(c.read()) << std::endl;
std::string y = "Hello world";
c.write(y);
std::cout << std::any_cast<std::string>(c.read()) << endl;
std::cout << std::any_cast<std::string>(c.read()) << std::endl;
}