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> | |
using namespace std; | |
template<class Random> | |
class MyObject | |
{ | |
Random _rand; | |
int _sum; | |
public: |
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 <cppa/cppa.hpp> | |
#include <cppa/optional.hpp> | |
using namespace std; | |
using namespace cppa; | |
using namespace cppa::io; | |
optional<uint16_t> as_u16(const std::string& str) | |
{ | |
return static_cast<uint16_t>(stoul(str)); |
NewerOlder