Skip to content

Commit

Permalink
[SymForce] Replace a couple of typedefs with using
Browse files Browse the repository at this point in the history
Topic: chaoqu_symforce_replace_typedef
Relative: chaoqu_symforce_remove_static
GitOrigin-RevId: d4c1e014a3dc08616f9364e8dcf8d367805bfe94
  • Loading branch information
chao-qu-skydio authored and aaron-skydio committed Mar 31, 2023
1 parent 0f0c802 commit cfa72f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions symforce/opt/templates.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct RangeGenerator : RangeGenerator<N - 1, N - 1, S...> {};

template <int... S>
struct RangeGenerator<0, S...> {
typedef Sequence<S...> Range;
using Range = Sequence<S...>;
};

template <typename F, size_t... Is>
Expand All @@ -50,7 +50,7 @@ auto indices(F f) {

template <class T>
struct remove_cvref {
typedef std::remove_cv_t<std::remove_reference_t<T>> type;
using type = std::remove_cv_t<std::remove_reference_t<T>>;
};

template <typename T>
Expand Down

0 comments on commit cfa72f1

Please sign in to comment.