Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Vinnie Falco vinniefalco

🏠
Working from home
Block or report user

Report or block vinniefalco

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:a9b992f3f1529cc40afbdc45a0cbffbf
template<class T>
struct is_file<T, detail::void_t<decltype(
std::declval<bool&>() = std::declval<T const&>().is_open(),
std::declval<T&>().close(std::declval<error_code&>()),
std::declval<T&>().create(
std::declval<char const*>(),
std::declval<file_mode>(),
std::declval<error_code&>()),
std::declval<T&>().open(
std::declval<char const*>(),
View gist:0ead73591dce5f790b5ad513fc071301
template<class NextLayer>
template<class MutableBufferSequence>
std::size_t
stream<NextLayer>::
read_some(
MutableBufferSequence const& buffers,
error_code& ec)
{
static_assert(is_sync_stream<next_layer_type>::value,
"SyncStream requirements not met");
View gist:93c098eb3048ab8dcef95ac5d1951f59
//
// Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BEAST_BIND_DETAIL_HANDLER_HPP
#define BEAST_BIND_DETAIL_HANDLER_HPP
View gist:9e12ae570e73c7849686627799858272
1>------ Build started: Project: common-test, Configuration: Debug Win32 ------
2>------ Build started: Project: core-tests, Configuration: Debug Win32 ------
3>------ Build started: Project: http-tests, Configuration: Debug Win32 ------
4>------ Build started: Project: lib-tests, Configuration: Debug Win32 ------
5>------ Build started: Project: server-framework, Configuration: Debug Win32 ------
6>------ Build started: Project: server-test, Configuration: Debug Win32 ------
7>------ Build started: Project: websocket-client, Configuration: Debug Win32 ------
8>------ Build started: Project: websocket-client-ssl, Configuration: Debug Win32 ------
9>------ Build started: Project: websocket-server-async, Configuration: Debug Win32 ------
10>------ Build started: Project: websocket-tests, Configuration: Debug Win32 ------
View gist:00e400193280f2d3edfbdf96407a7830
1>------ Build started: Project: common-test, Configuration: Debug Win32 ------
2>------ Build started: Project: core-tests, Configuration: Debug Win32 ------
3>------ Build started: Project: http-tests, Configuration: Debug Win32 ------
4>------ Build started: Project: lib-tests, Configuration: Debug Win32 ------
5>------ Build started: Project: server-framework, Configuration: Debug Win32 ------
6>------ Build started: Project: server-test, Configuration: Debug Win32 ------
7>------ Build started: Project: websocket-client, Configuration: Debug Win32 ------
8>------ Build started: Project: websocket-client-ssl, Configuration: Debug Win32 ------
9>------ Build started: Project: websocket-server-async, Configuration: Debug Win32 ------
10>------ Build started: Project: websocket-tests, Configuration: Debug Win32 ------
View gist:777392dda186bf90ed332ec1cdeeb9dd
template<class OuterAlloc, class InnerAlloc>
struct message<true, OuterAlloc, InnerAlloc>
{
using alloc_type =
scoped_allocator_adapter<OuterAlloc, InnerAlloc>;
using str_t = basic_string<
char, char_traits<char>, InnerAlloc>;
int version;
str_t method;
str_t target;
View gist:6a4ac56480f007e367527a95ffbbd756
template<class OuterAlloc, class InnerAlloc = OuterAlloc,
class StringAlloc = OuterAlloc, class BodyAlloc = OuterAlloc>
struct message<true, OuterAlloc, InnerAlloc, StringAlloc, BodyAlloc>
{
int version;
basic_string<char, char_traits<char>, StringAlloc> method;
basic_string<char, char_traits<char>, StringAlloc> target;
using inner_string = basic_string<
char, char_traits<char>, InnerAlloc>;
map<inner_string, inner_string, less<str_t>,
View gist:7c47915f55c66d10505c612869c798c6
// This simple variant gets the job done without
// causing too much trouble with template depth:
//
// * Always allows an empty state I==0
// * emplace() and get() support 1-based indexes only
// * Basic exception guarantee
// * Max 255 types
//
template<class... TN>
class variant
View gist:0c51dad9bb5d8012f94b0ef5c6b7dd71
Thread 64 "websocket-tests" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe7fff700 (LWP 16591)]
0x000000000041fac4 in boost::system::error_category::std_category::message[abi:cxx11](int) const (this=0x0, ev=0) at ./boost/system/error_code.hpp:238
238 virtual std::string message( int ev ) const
(gdb) bt
#0 0x000000000041fac4 in boost::system::error_category::std_category::message[abi:cxx11](int) const (this=0x0, ev=0) at ./boost/system/error_code.hpp:238
#1 0x00007ffff71db6a5 in std::_V2::error_category::_M_message[abi:cxx11](int) const () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#2 0x00007ffff779a409 in boost::system::(anonymous namespace)::system_error_category::message (this=0x7ffff799c180 <boost::system::system_category()::system_category_const>, ev=104) at ./boost/system/detail/error_code.ipp:376
#3 0x000000000041fb04 in boost::system::error_category::std_category::message[abi:cxx11](int) const (this=0x7ffff799c188 <boost::system::generic_category()::generic_cate
View gist:1057d7ad7dee69346ab4c66a2e3000bc
#120883 0x00007ffff71db6a5 in std::_V2::error_category::_M_message[abi:cxx11](int) const () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#120884 0x00007ffff779a409 in boost::system::(anonymous namespace)::system_error_category::message (this=0x7ffff799c180 <boost::system::system_category()::system_category_const>, ev=104) at ./boost/system/detail/error_code.ipp:376
#120885 0x000000000041fc4e in boost::system::error_code::message[abi:cxx11]() const (this=0x7fffe7ffe3f0) at ./boost/system/error_code.hpp:434
#120886 0x00000000004f0db9 in websocket::sync_echo_server::do_peer(unsigned long, boost::asio::ip::basic_endpoint<boost::asio::ip::tcp> const&, boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >&&) (this=0x7fffffffd140, id=54, ep=..., sock=<unknown type in /home/vinnie/src/boost/bin.v2/libs/beast/test/websocket/gcc-5.4.0/debug/threading-multi/websocket-tests, CU 0x1d1725, DIE 0x3e7f83>) at libs/beast/test/websocket/websocket_sync_echo_server.hpp
You can’t perform that action at this time.