Skip to content

Instantly share code, notes, and snippets.

View klemens-morgenstern's full-sized avatar

Klemens Morgenstern klemens-morgenstern

View GitHub Profile
//
// Copyright (c) 2024 Klemens Morgenstern (klemens.morgenstern@gmx.net)
//
// 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 BOOST_SQLITE_TRANSACTION_HPP
#define BOOST_SQLITE_TRANSACTION_HPP
title document date audience author
Implementation defined coroutine extensions
P3203
2024-03-22
Core
name email
Klemens David Morgenstern
<klemens.d.morgenstern@gmail.com>
@klemens-morgenstern
klemens-morgenstern / run-b2.py
Created April 5, 2023 01:44
b2 -> compile_commands.json
import subprocess
import re
import sys
import os
import json
import os.path
cwd = os.getcwd()
ll = subprocess.Popen(
sys.argv[1:] + ['-n'],
#include <boost/asio/associator.hpp>
#include <boost/asio/async_result.hpp>
#include <boost/system/error_code.hpp>
namespace boost
{
namespace requests
{
namespace detail
/home/klemens/develop/boost/libs/http_proto/cmake-build-release/test/unit/boost_http_proto_sandbox
boost.http_io.sandbox
write 1048576 bytes in 571ms
async_read_some: 41536
async_read_some: 51920
async_read_some: 67496
async_read_some: 155760
async_read_some: 170038
async_read_some: 219362
async_read_some: 259600
/home/klemens/develop/boost/libs/http_proto/cmake-build-debug/test/unit/boost_http_proto_sandbox
boost.http_io.sandbox
write 1048576 bytes in 944ms
async_read_some: 41536
async_read_some: 49324
async_read_some: 108968
async_read_some: 93456
async_read_some: 98648
async_read_some: 129800
async_read_some: 129800
@klemens-morgenstern
klemens-morgenstern / json_body.hpp
Last active August 30, 2022 15:51
a hack json_body
//
// Copyright (c) 2022 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
//
//------------------------------------------------------------------------------
@klemens-morgenstern
klemens-morgenstern / describe.cpp
Created August 7, 2022 11:20
function-describe attempt
#include <boost/describe.hpp>
#include <boost/preprocessor.hpp>
#include <utility>
#include <boost/mp11.hpp>
namespace boost::describe
{
namespace detail {
#include <iostream>
#include <boost/asio.hpp>
#include <boost/mysql.hpp>
using namespace boost;
struct printer
{
template<typename T>
//
// boost/utility/cstring_view.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2022 Klemens D. Morgenstern
// (klemens dot morgenstern at gmx dot net)
//
// 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)
//