This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oberstet@corei7ub1310:~/scm/tavendo/autobahn/AutobahnCpp$ scons | |
scons: Reading SConscript files ... | |
scons: done reading SConscript files. | |
scons: Building targets ... | |
clang++ -o build/test/test10.o -c -std=c++11 -stdlib=libc++ -Wall -Wno-deprecated-declarations -pthread -I/home/oberstet/boost -Iinclude -I/home/oberstet/msgpack_clang/include test/test10.cpp | |
test/test10.cpp:14:44: error: no viable conversion from 'future<typename detail::when_type<class future<int> &, class future<int> &>::container_type>' to | |
'future<tuple<future<int>, future<int> >>' | |
future<tuple<future<int>, future<int>>> f3 = when_all(f1, f2); | |
^ ~~~~~~~~~~~~~~~~ | |
/home/oberstet/boost/boost/thread/future.hpp:1542:9: note: candidate constructor not viable: no known conversion from 'future<typename detail::when_type<future<int> &, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#define BOOST_THREAD_PROVIDES_FUTURE | |
#define BOOST_THREAD_PROVIDES_FUTURE_CONTINUATION | |
#define BOOST_THREAD_PROVIDES_FUTURE_WHEN_ALL_WHEN_ANY | |
#include <boost/thread/future.hpp> | |
using namespace boost; | |
int main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oberstet@corei7ub1310:~/scm/tavendo/autobahn/AutobahnCpp$ scons | |
scons: Reading SConscript files ... | |
scons: done reading SConscript files. | |
scons: Building targets ... | |
clang++ -o build/test/test10.o -c -std=c++11 -stdlib=libc++ -Wall -Wno-deprecated-declarations -pthread -I/home/oberstet/boost -Iinclude -I/home/oberstet/msgpack_clang/include test/test10.cpp | |
In file included from test/test10.cpp:6: | |
/home/oberstet/boost/boost/thread/future.hpp:4608:7: warning: expression result unused [-Wunused-value] | |
typename alias_t<char[]>::type{ | |
^ ~ | |
/home/oberstet/boost/boost/thread/future.hpp:4768:15: note: in instantiation of function template specialization |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#define BOOST_THREAD_PROVIDES_FUTURE | |
#define BOOST_THREAD_PROVIDES_FUTURE_CONTINUATION | |
#define BOOST_THREAD_PROVIDES_FUTURE_WHEN_ALL_WHEN_ANY | |
#include <boost/thread/future.hpp> | |
using namespace boost; | |
int main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#define BOOST_THREAD_PROVIDES_FUTURE | |
#define BOOST_THREAD_PROVIDES_FUTURE_CONTINUATION | |
#define BOOST_THREAD_PROVIDES_FUTURE_WHEN_ALL_WHEN_ANY | |
#include <boost/thread/future.hpp> | |
using namespace boost; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#define BOOST_THREAD_PROVIDES_FUTURE | |
#define BOOST_THREAD_PROVIDES_FUTURE_CONTINUATION | |
#define BOOST_THREAD_PROVIDES_FUTURE_WHEN_ALL_WHEN_ANY | |
#include <boost/thread/future.hpp> | |
using namespace boost; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#define BOOST_THREAD_PROVIDES_FUTURE | |
#define BOOST_THREAD_PROVIDES_FUTURE_CONTINUATION | |
#define BOOST_THREAD_PROVIDES_FUTURE_WHEN_ALL_WHEN_ANY | |
#include <boost/thread/future.hpp> | |
using namespace boost; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#define BOOST_THREAD_PROVIDES_FUTURE | |
#define BOOST_THREAD_PROVIDES_FUTURE_CONTINUATION | |
#define BOOST_THREAD_PROVIDES_FUTURE_WHEN_ALL_WHEN_ANY | |
#include <boost/thread/future.hpp> | |
using namespace boost; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import abc | |
import six | |
@six.add_metaclass(abc.ABCMeta) | |
class IMessage(object): | |
@abc.abstractmethod | |
def foo(self): | |
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import inspect | |
from twisted.internet import reactor | |
from twisted.internet.defer import inlineCallbacks, returnValue | |
from autobahn.twisted import util | |
def foo1(): | |
print("foo1") | |
return 1 | |
@inlineCallbacks |