Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 7 years ago

Language

Compiler

Options

Author

anonymous

over 7 years ago

future.h
shared-future.h
test-unshared.cc
test-shared.cc

$
prog.cc:12:47: error: no member named 'share' in 'my::future<int>'
    my::shared_future<int> f = p.get_future().share();
                               ~~~~~~~~~~~~~~ ^
prog.cc:12:28: error: implicit instantiation of undefined template 'my::shared_future<int>'
    my::shared_future<int> f = p.get_future().share();
                           ^
./future.h:61:25: note: template is declared here
template<class T> class shared_future;
                        ^
2 errors generated.
Exit Code:
1