Mark the copy constructor and move
authorMarshall Clow <mclow.lists@gmail.com>
Wed, 17 May 2017 15:30:01 +0000 (15:30 +0000)
committerMarshall Clow <mclow.lists@gmail.com>
Wed, 17 May 2017 15:30:01 +0000 (15:30 +0000)
commitc1bcd4c1f280e40d25dada5573e1a51de69a991a
treefc904e5d37ac5e1c052d570e21175a706e6963ac
parent6dc120a41d01d49398a28d96a833d5f31d339146
Mark the copy constructor and move
constructor to be constexpr. This only works when the contained type has a constexpr copy/move ctor.

llvm-svn: 303268
libcxx/include/optional
libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/copy.pass.cpp
libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/move.pass.cpp