Skip to content

Instantly share code, notes, and snippets.

@dpoggi
Last active July 26, 2019 07:19
Show Gist options
  • Save dpoggi/269e67ac73000d875614fb289daa145f to your computer and use it in GitHub Desktop.
Save dpoggi/269e67ac73000d875614fb289daa145f to your computer and use it in GitHub Desktop.
/*
* midwestern.hpp by Dan Poggi
*
* To the extent possible under law, the person who associated CC0 with
* midwestern.hpp has waived all copyright and related or neighboring
* rights to midwestern.hpp.
*
* You should have received a copy of the CC0 legalcode along with this
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
*/
#ifndef MIDWESTERN_HPP_
#define MIDWESTERN_HPP_
#include <type_traits>
#ifdef ope
#undef ope
#endif // ope
#define ope catch
inline constexpr bool yep = true;
using yep_type = std::bool_constant<yep>;
inline constexpr bool nope = false;
using nope_type = std::bool_constant<nope>;
#endif // MIDWESTERN_HPP_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment