Skip to content

Commit

Permalink
Mark optional as deprecated.
Browse files Browse the repository at this point in the history
See #64.
  • Loading branch information
joto committed Jan 22, 2016
1 parent 8e4ad8a commit 0e42ef1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ Note: get the "2013 Nov CTP" release at http://www.microsoft.com/en-us/download/

There is nothing to build, just include `variant.hpp` and
`recursive_wrapper.hpp` in your project. Include `variant_io.hpp` if you need
the `operator<<` overload for variant. Include `optional.hpp` to get an
`optional<T>` class.
the `operator<<` overload for variant.


## Unit Tests
Expand Down
2 changes: 2 additions & 0 deletions optional.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef MAPBOX_UTIL_OPTIONAL_HPP
#define MAPBOX_UTIL_OPTIONAL_HPP

#pragma message("This implementation of optional is deprecated. See https://github.com/mapbox/variant/issues/64.")

#include <type_traits>
#include <utility>

Expand Down

0 comments on commit 0e42ef1

Please sign in to comment.