This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <chrono> | |
#include <cstdint> | |
#include <istream> | |
#include <locale> | |
#include <ostream> | |
namespace std | |
{ | |
namespace chrono | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "date/tz.h" | |
#include <ostream> | |
#include <istream> | |
namespace filesystem | |
{ | |
struct file_clock | |
{ | |
using duration = std::chrono::nanoseconds; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------------------------------------- | |
# | |
# Rippled Server Instance Configuration Example | |
# | |
#------------------------------------------------------------------------------- | |
# | |
# Contents | |
# | |
# 1. Server | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef SCOPE | |
#define SCOPE | |
#include <exception> | |
#include <type_traits> | |
namespace xstd | |
{ | |
// scope_exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct P | |
{ | |
T* t; | |
std::atomic<std::uint16_t> n; | |
template<class DeducedHandler, class... Args> | |
P(DeducedHandler&& handler, Args&&... args); | |
private: | |
P() noexcept; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// clang++ -std=c++14 rippled_conversion.cpp -o rippled_conversion -I../date ../date/tz.cpp -O3 -lcurl | |
#include "tz.h" // Requires: http://howardhinnant.github.io/date/tz.html | |
#include <chrono> | |
#include <iostream> | |
#include <sstream> | |
#include <stdexcept> | |
#include <string> | |
#include <thread> |