Skip to content

Commit ab6fe0e

Browse files
committed
Move the Split definition down by split()
1 parent 5b784dc commit ab6fe0e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

subspace/fn/fn_defn.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,10 @@ class [[sus_trivial_abi]] FnOnce<R(CallArgs...)> {
501501
return *this;
502502
}
503503

504+
// Not copyable.
505+
FnOnce(const FnOnce&) noexcept = delete;
506+
FnOnce& operator=(const FnOnce&) noexcept = delete;
507+
504508
/// A split FnOnce object, which can be used to construct other FnOnce
505509
/// objects, but enforces that only one of them is called.
506510
///
@@ -525,10 +529,6 @@ class [[sus_trivial_abi]] FnOnce<R(CallArgs...)> {
525529
FnOnce& fn_;
526530
};
527531

528-
// Not copyable.
529-
FnOnce(const FnOnce&) noexcept = delete;
530-
FnOnce& operator=(const FnOnce&) noexcept = delete;
531-
532532
/// A `FnOnce` can be split into any number of `FnOnce` objects, while
533533
/// enforcing that the underlying function is only called a single time.
534534
///

0 commit comments

Comments
 (0)