From 0b46dda4133eb50ecd1835b7171b614efa382147 Mon Sep 17 00:00:00 2001 From: Hans Fugal Date: Fri, 24 Apr 2015 18:10:49 -0700 Subject: [PATCH] Introducing Unit! Summary: title Test Plan: tests Reviewed By: hannesr@fb.com Subscribers: exa, folly-diffs@, jsedgwick, yfeldblum, chalfant FB internal diff: D2022859 Signature: t1:2022859:1429920863:0d3afce9779a790baf246de97f98812e23e1574d --- folly/futures/Try.h | 1 + folly/futures/Unit.h | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 folly/futures/Unit.h diff --git a/folly/futures/Try.h b/folly/futures/Try.h index fad92e39..1fd13c02 100644 --- a/folly/futures/Try.h +++ b/folly/futures/Try.h @@ -24,6 +24,7 @@ #include #include #include +#include namespace folly { diff --git a/folly/futures/Unit.h b/folly/futures/Unit.h new file mode 100644 index 00000000..a01aa20d --- /dev/null +++ b/folly/futures/Unit.h @@ -0,0 +1,21 @@ +/* + * Copyright 2015 Facebook, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#pragma once +namespace folly { + +struct Unit {}; + +} -- 2.34.1