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
// simplygon_minimal_example.cpp | |
#define WIN32_LEAN_AND_MEAN | |
#include <fstream> | |
#include <cassert> | |
#include <cstdio> | |
#include <cstdint> | |
#include <vector> | |
#include <string> | |
#include <windows.h> | |
#include <tchar.h> |
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
// ---------------------------------------------------------------------------- | |
// scope_exit.h | |
// ---------------------------------------------------------------------------- | |
// Description : Tiny "ScopeExit" on C++11. | |
#pragma once | |
template <typename T> class ScopeExit | |
{ | |
public: | |
T m_func; |
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
// ---------------------------------------------------------------------------- | |
// constexpr_hash_murmur.h | |
// ---------------------------------------------------------------------------- | |
// compile time string hashing(murmur hash equivalent). | |
// @see also https://sites.google.com/site/murmurhash/ | |
#pragma once | |
#include <stdint.h> | |
#if defined(_MSC_VER) | |
#pragma warning (push) |