Skip to content

Instantly share code, notes, and snippets.

View Naios's full-sized avatar

Denis Blank Naios

  • Germany
View GitHub Profile
@Naios
Naios / error_code.cpp
Created April 21, 2017 15:39
Custom error category
class process_error_category : public std::error_category {
public:
using error_category::error_category;
const char* name() const noexcept override {
return "";
}
std::string message(int _Errval) const override {
return "";
@Naios
Naios / extract_all.diff
Created May 8, 2017 22:57
HPX documentation with EXTRACT_ALL
This file has been truncated, but you can view the full file.
diff --git a/hpx.html b/hpx.html
index 8290a7a..a13dfdc 100644
--- a/hpx.html
+++ b/hpx.html
@@ -65,7 +65,7 @@
Performance Counter Data using a Simple Function</a></span></dt><dt><span class="section"><a href="#hpx.manual.performance_counters.providing.full_counters">Implementing
a Full Performance Counter</a></span></dt></dl></dd><dt><span class="section"><a href="#hpx.manual.performance_counters.counters">Existing
<span class="emphasis"><em>HPX</em></span> Performance Counters</a></span></dt></dl></dd><dt><span class="section"><a href="#hpx.manual.schedulers"><span class="emphasis"><em>HPX</em></span> Thread
- Scheduling Policies</a></span></dt></dl></dd><dt><span class="section"><a href="#id761419">Index</a></span></dt><dt><span class="section"><a href="#id778529">Reference</a></span></dt><dd><dl><dt><span class="section"><a href="#header.hpx.components.component_storage.migrate_from_storage_hpp">Header &lt;hpx/components/component_storage/migrate_from_storage.hpp&gt;</a
diff --git a/cmake/macros/FindPCHSupport.cmake b/cmake/macros/FindPCHSupport.cmake
index abe7f40d17..bb6affbc36 100644
--- a/cmake/macros/FindPCHSupport.cmake
+++ b/cmake/macros/FindPCHSupport.cmake
@@ -1,3 +1,4 @@
+set(COTIRE_PCH_MEMORY_SCALING_FACTOR 500)
include(cotire)
function(ADD_CXX_PCH TARGET_NAME_LIST PCH_HEADER)
@Naios
Naios / continuable.hpp
Created March 12, 2018 15:06
Continuable 3.0.0 Amalgamation
/// This is an automatic generated amalgamation of:
/// continuable version 3.0.0 (d30814c2ff001)
/*
/~` _ _ _|_. _ _ |_ | _
\_,(_)| | | || ||_|(_||_)|(/_
https://github.com/Naios/continuable
v3.0.0
@Naios
Naios / continuable.hpp
Created April 7, 2020 20:14
Continuable 4.0.0 Amalgamation
/// This is an automatic generated amalgamation of:
/// continuable version 4.0.0 (735697026b72a8f415d3443834cceeda9623780d)
/*
/~` _ _ _|_. _ _ |_ | _
\_,(_)| | | || ||_|(_||_)|(/_
https://github.com/Naios/continuable
v4.0.0
@Naios
Naios / testit.md
Created December 17, 2020 13:09
testit

test

@Naios
Naios / Span.hpp
Created January 20, 2022 15:38
A simple span polyfill
template <typename T>
class Span {
public:
using size_type = std::size_t;
using value_type = std::remove_const_t<T>;
using pointer = std::add_pointer_t<T>;
using const_pointer = std::add_pointer_t<std::add_const_t<T>>;
using reference = std::add_lvalue_reference_t<T>;
using const_reference = std::add_lvalue_reference_t<std::add_const_t<T>>;