/variant

Variant: A type-safe union

Primary LanguageC++Boost Software License 1.0BSL-1.0

Variant

Stability Build Status License Gitter

A type-safe union

Introduction

variant reached a design consensus at the fall ISO C++ committee meeting in Kona, HI, USA. While the design is still not final, this library is an experimental reference implementation of P0088R0.

Quick Start

Since this project uses git submodule, specifying the --recursive flag to git clone is recommended.

git clone --recursive https://github.com/mpark/variant.git

Requirements

This library requires a standard conformant C++14 compiler.

Tested configurations:

  • Ubuntu 14.04 Trusty: GCC 5, Clang 3.5+
  • Mac OS X Yosemite: Apple Clang, Clang 3.5+