Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
lockshaw committed Oct 10, 2024
1 parent 27a0cfe commit c10c740
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions lib/utils/include/utils/rapidcheck/variant.h
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
#ifndef _FLEXFLOW_LIB_UTILS_INCLUDE_UTILS_RAPIDCHECK_VARIANT_H
#define _FLEXFLOW_LIB_UTILS_INCLUDE_UTILS_RAPIDCHECK_VARIANT_H

#include <variant>
#include <rapidcheck.h>
#include <variant>

namespace rc {

template <typename... Ts>
struct Arbitrary<std::variant<Ts...>> {
static Gen<std::variant<Ts...>> arbitrary() {
return gen::oneOf(gen::construct<std::variant<Ts...>>(gen::arbitrary<Ts>())...);
return gen::oneOf(
gen::construct<std::variant<Ts...>>(gen::arbitrary<Ts>())...);
}
};

Expand Down
3 changes: 1 addition & 2 deletions lib/utils/src/utils/rapidcheck/variant.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ namespace rc {
using T0 = int;
using T1 = std::string;

template
struct Arbitrary<std::variant<T0, T1>>;
template struct Arbitrary<std::variant<T0, T1>>;

} // namespace rc
2 changes: 1 addition & 1 deletion lib/utils/test/src/utils/rapidcheck/variant.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "utils/rapidcheck/variant.h"
#include <doctest/doctest.h>
#include "test/utils/rapidcheck.h"
#include <doctest/doctest.h>

using namespace ::FlexFlow;

Expand Down

0 comments on commit c10c740

Please sign in to comment.