This file contains hidden or 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
/Applications/CLion.app/Contents/bin/cmake/bin/cmake --build /Users/ahcox/Library/Caches/CLion2016.2/cmake/generated/stlab_experiments-e68879c1/e68879c1/Debug --target async_error_repro2 -- -j 8 | |
-- Configuring done | |
-- Generating done | |
-- Build files have been written to: /Users/ahcox/Library/Caches/CLion2016.2/cmake/generated/stlab_experiments-e68879c1/e68879c1/Debug | |
[ 50%] Building CXX object CMakeFiles/async_error_repro2.dir/async_error_repro2.cpp.o | |
In file included from /Users/ahcox/checkouts/stlab_experiments/async_error_repro2.cpp:9: | |
In file included from /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:22: | |
In file included from /Users/ahcox/checkouts/stlab/stlab/concurrency/executor_base.hpp:16: | |
/Users/ahcox/checkouts/stlab/stlab/concurrency/task.hpp:78:52: error: no matching function for call to object of type 'std::__1::__bind<(lambda at /Users/ahcox/checkouts/stlab/stlab/concurrency/future.hpp:1278:19), const int &, const long double &, std::__1::reference_wrapper<SharedState> >' | |
R in |
This file contains hidden or 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
// | |
// Created by Andrew Cox 2017. | |
// | |
#include <iostream> | |
#include <future> | |
#include <stlab/concurrency/default_executor.hpp> | |
#include <stlab/concurrency/future.hpp> |
This file contains hidden or 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
// | |
// Created by Andrew Cox 2017. | |
// | |
#include <iostream> | |
#include <future> | |
#include <stlab/concurrency/default_executor.hpp> | |
#include <stlab/concurrency/future.hpp> |
This file contains hidden or 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
void dumpTouch(std::ostream& out, const cocos2d::Touch* touch) | |
{ | |
if(touch){ | |
const auto loc = touch->getLocation(); | |
const auto prev = touch->getPreviousLocation(); | |
const auto start = touch->getStartLocation(); | |
const auto delta = touch->getDelta(); | |
const auto id = touch->getID(); | |
const auto viewLoc = touch->getLocationInView(); | |
const auto viewPrev = touch->getPreviousLocationInView(); |