]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/: add match() utilities for boost::variant
authorSamuel Just <sjust@redhat.com>
Wed, 10 Aug 2016 22:26:38 +0000 (15:26 -0700)
committerSamuel Just <sjust@redhat.com>
Thu, 17 Nov 2016 18:40:16 +0000 (10:40 -0800)
commit05ddacb192ea993346b349c09e0731d712f83936
treead03a0489c1100660ad214e844ddac72a10fa4ac
parent9c65dee2742ed0d435af8beea8d9d6ff18cbdabf
common/: add match() utilities for boost::variant

C++ doesn't have a sum type with nice pattern matching syntax.
Fortunately, someone on stack overflow fixed that.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/common/function_signature.h [new file with mode: 0644]
src/common/inline_variant.h [new file with mode: 0644]