Skip to content

Instantly share code, notes, and snippets.

View vinniefalco's full-sized avatar
🏠
Working from home

Vinnie Falco vinniefalco

🏠
Working from home
View GitHub Profile
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*>(),
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");
//
// 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
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 ------
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 ------
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;
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>,
// 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
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
#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