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 <vector> | |
#include <sstream> | |
#include <msgpack.hpp> | |
namespace foo { | |
struct no_def_con { | |
no_def_con() = delete; | |
MSGPACK_DEFINE(i1, i2, v); |
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
CMAKE_MINIMUM_REQUIRED (VERSION 2.8.12) | |
ENABLE_TESTING () | |
STRING(REPLACE " " ";" CTEST_ARGS_LIST $ENV{CTEST_ARGS}) | |
ADD_TEST(foo foo.sh ${CTEST_ARGS_LIST}) |
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 <sstream> | |
#include <string> | |
#include <iostream> | |
#include <iomanip> | |
#include <algorithm> | |
#include <boost/iostreams/filtering_stream.hpp> | |
#include <boost/iostreams/filtering_streambuf.hpp> | |
#include <boost/iostreams/copy.hpp> | |
#include <boost/iostreams/filter/zlib.hpp> |
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 <sstream> | |
#include <string> | |
#include <iostream> | |
#include <iomanip> | |
#include <algorithm> | |
#include <boost/iostreams/filtering_stream.hpp> | |
#include <boost/iostreams/filtering_streambuf.hpp> | |
#include <boost/iostreams/copy.hpp> | |
#include <boost/iostreams/filter/zlib.hpp> |
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
MyClass mc = a == b ? c | |
: d == e ? f | |
: g; |
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 <boost/predef.h> | |
#include <stdio.h> | |
int main() { | |
printf("%d\n", BOOST_ENDIAN_BIG_BYTE); | |
printf("%d\n", BOOST_ENDIAN_BIG_WORD); | |
printf("%d\n", BOOST_ENDIAN_LITTLE_BYTE); | |
printf("%d\n", BOOST_ENDIAN_LITTLE_WORD); | |
} |
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
// g++ -std=c++11 -Wall -Wextra client.cpp -lboost_system -pthread | |
#define _WEBSOCKETPP_CPP11_STL_ | |
#define _WEBSOCKETPP_RVALUE_REFERENCES_ | |
#define _WEBSOCKETPP_DELETED_FUNCTIONS_ | |
#include <iostream> | |
#include <websocketpp/config/asio_no_tls.hpp> | |
#include <websocketpp/client.hpp> |
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 <boost/config/warning_disable.hpp> | |
#include <boost/spirit/home/x3.hpp> | |
namespace x3 = boost::spirit::x3; | |
int main() { | |
using x3::char_; | |
std::string input( "cosmic pizza" ); | |
auto iter = input.begin(); |
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 <msgpack.hpp> | |
#include <sstream> | |
#include <cassert> | |
#include <iostream> | |
struct A { | |
int a; | |
MSGPACK_DEFINE(a); | |
}; |
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 <functional> | |
#include <boost/array.hpp> | |
#include <boost/asio.hpp> | |
#include <boost/coroutine/all.hpp> | |
using boost::asio::ip::tcp; | |
char g_data[] = {0}; |
NewerOlder