Skip to content

Instantly share code, notes, and snippets.

View iamOgunyinka's full-sized avatar

Joshua iamOgunyinka

View GitHub Profile
@iamOgunyinka
iamOgunyinka / expressions.hpp
Created December 7, 2014 02:22
A simple expression library for building and parsing simple mathematical expressions
#ifndef EXPRESSIONS_H_INCLUDED
#define EXPRESSIONS_H_INCLUDED
#include <memory>
#include <cassert>
#include <cmath>
namespace Expression
{
#include <array>
#include <functional>
template <typename... T>
using common_type_t = typename std::common_type<T...>::type;
template <typename T>
using remove_cv_t = typename std::remove_cv<T>::type;
template <bool, typename T, typename... U>