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
//------------------------------------------------------------------------------
/*
This file is part of Beast: https://github.com/vinniefalco/Beast
Copyright 2013, Vinnie Falco <vinnie.falco@gmail.com>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
July 10, 2020
Dear Members of the Ransom Everglades Community,
In the weeks since the killing of George Floyd, our nation as a whole,
including members of our own community, has been engaged in
conversation and reflection about racism and racial injustice. On
Juneteenth-June 19th, the RE Black alumni community sent an
unambiguous letter to us, outlining their concerns and suggestions for
change. During two subsequent virtual town halls, these members of our
notice: found boost-build.jam at C:/Users/vinnie/src/boost/boost-build.jam
notice: loading B2 from C:/Users/vinnie/src/boost/tools/build/src/bootstrap.jam
notice: Searching 'C:\Users\vinnie' 'C:\Users\vinnie' 'C:\Users\vinnie' 'C:/Users/vinnie/src/boost/tools/build/src' 'C:/Users/vinnie/src/boost/tools/build/src/kernel' 'C:/Users/vinnie/src/boost/tools/build/src/util' 'C:/Users/vinnie/src/boost/tools/build/src/build' 'C:/Users/vinnie/src/boost/tools/build/src/tools' 'C:/Users/vinnie/src/boost/tools/build/src/contrib' 'C:/Users/vinnie/src/boost/tools/build/src/.' for site-config configuration file 'site-config.jam'.
notice: Configuration file 'site-config.jam' not found in 'C:\Users\vinnie' 'C:\Users\vinnie' 'C:\Users\vinnie' 'C:/Users/vinnie/src/boost/tools/build/src' 'C:/Users/vinnie/src/boost/tools/build/src/kernel' 'C:/Users/vinnie/src/boost/tools/build/src/util' 'C:/Users/vinnie/src/boost/tools/build/src/build' 'C:/Users/vinnie/src/boost/tools/build/src/tools' 'C:/Users/vinnie/src/boost/tools/build/src/co
msvc.compile.asm C:\Users\vinnie\src\boost\bin.v2\libs\context\build\msvc-14.2\dbg\adrs-mdl-64\lnk-sttc\thrd-mlt\asm\jump_x86_64_ms_pe_masm.obj
'ml64' is not recognized as an internal or external command,
operable program or batch file.
call "C:\Users\vinnie\src\boost\bin.v2\standalone\msvc\msvc-14.2\msvc-setup.bat" >nul
ml64 -c -Zp4 -Cp -Cx -nologo -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTEXT_EXPORT= -DBOOST_CONTEXT_SOURCE -D_WIN32_WINNT=0x0601 /Zi /Zd /W3 -Fo "C:\Users\vinnie\src\boost\bin.v2\libs\context\build\msvc-14.2\dbg\adrs-mdl-64\lnk-sttc\thrd-mlt\asm\jump_x86_64_ms_pe_masm.obj" "C:\Users\vinnie\src\boost\libs\context\src\asm\jump_x86_64_ms_pe_masm.asm"
...failed msvc.compile.asm C:\Users\vinnie\src\boost\bin.v2\libs\context\build\msvc-14.2\dbg\adrs-mdl-64\lnk-sttc\thrd-mlt\asm\jump_x86_64_ms_pe_masm.obj...
compile-c-c++ C:\Users\vinnie\src\boost\bin.v2\libs\fiber\build\msvc-14.2\dbg\adrs-mdl-64\lnk-sttc\thrd-mlt\context.obj
context.cpp
static
void
serialize_impl(
string& s,
serializer& sr)
{
// serialize to a small buffer
// to avoid most reallocations
char buf[16384];
string_view sv;
/** Return an @ref array pointer if this is an array, else return `nullptr`
If `this->kind() == kind::array`, then a pointer
to the underlying array is returned. Otherwise,
`nullptr` is returned.
@par Example
The semantics of the function allow the return
value to be used in a conditional expression as
void*
static_resource::
do_allocate(
std::size_t n,
std::size_t align)
{
std::size_t const extra = (
align * ((i_ + align - 1) / align)) - i_;
if( extra > n_ ||
n > n_ ||
void*
static_resource::
do_allocate(
std::size_t n,
std::size_t align)
{
auto const i = reinterpret_cast<
std::uintptr_t>(buffer_ + used_);
std::size_t const extra = (
align * ((i + align - 1) / align)) - i;
/** Constructor
This constructs a non-owning pointer that
points to the specified memory resource `r`.
The caller is responsible for maintaining the
lifetime of the pointed-to @ref memory_resource.
@par Constraints
@code
std::is_convertible< T*, memory_resource* >::value == true
A polymorphic allocator constructs with a pointer to a memory resource:
// A type of memory resource
std::pmr::monotonic_buffer_resource mr;
// Construct a vector using the monotonic buffer resource
std::pmr::vector< T > v1( std::pmr::polymorphic_allocator< T >(&mr) );
// Or this way, since construction from memory_resource* is implicit:
std::pmr::vector< T > v2( &mr );