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
//
// Copyright (c) 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)
//
#include <beast/core/async_result.hpp>
#include <beast/core/bind_handler.hpp>
#include <beast/core/error.hpp>
Performing configuration checks
- 32-bit : no (cached)
- 64-bit : yes (cached)
- arm : no (cached)
- mips1 : no (cached)
- power : no (cached)
- sparc : no (cached)
- x86 : yes (cached)
- symlinks supported : yes (cached)
#include <string>
#include <cstdint>
#include <iostream>
#include <boost/asio/io_context.hpp>
#include <boost/asio/use_future.hpp>
#include <boost/asio/steady_timer.hpp>
#include <boost/beast/core/string.hpp>
#include <boost/beast/core/ostream.hpp>
$ b2 -j20 doc
..\..\libs\log\build\Jamfile.v2:45: Unescaped special character in argument <def ine>$(flag)=1
C:/Users/vinnie/src/boost/libs/predef/check/../tools/check\predef.jam:46: Unesca ped special character in argument $(language)::$(expression)
Performing configuration checks
- default address-model : 32-bit (cached)
- default architecture : x86 (cached)
- symlinks supported : yes (cached)
- C++11 mutex : yes (cached)
...patience...
// calculates the coalesce settings for a buffer sequence
template<class FwdIt>
struct coalesce_result
{
FwdIt last;
std::size_t size = 0;
bool copy = false;
explicit
coalesce_result(FwdIt last_)
class generic_service
: public boost::asio::io_context::service
{
struct state
{
state()
{
libusb_init(0); // example
}
/** Adaptor to present a DynamicStorage object as a DynamicBuffer
*/
template<class DynamicStorage>
class dynamic_storage
{
DynamicStorage& s_;
public:
using const_buffers_type =
typename DynamicStorage::const_buffers_type;
//
// Copyright (c) 2016-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)
//
// Official repository: https://github.com/boostorg/beast
//
#ifndef BOOST_BEAST_BUFFERS_ADAPTER_HPP
CMake Error at C:/Program Files/CMake/share/cmake-3.8/Modules/FindBoost.cmake:1813 (message):
Unable to find the requested Boost libraries.
Boost version: 1.67.0
Boost include path: C:/Users/vinnie/lib/boost_1_67_0
Could not find the following static Boost libraries:
boost_system
#
# Copyright (c) 2016-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)
#
# Official repository: https://github.com/boostorg/beast
#
cmake_minimum_required (VERSION 3.0.0)