Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Commit

Permalink
Removes AutoDiffXd from default scalars.
Browse files Browse the repository at this point in the history
Signed-off-by: Agustin Alba Chicar <ag.albachicar@gmail.com>
  • Loading branch information
agalbachicar committed Sep 11, 2023
1 parent 3f056c9 commit 78f9fe9
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions include/maliput/drake/common/default_scalars.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,23 +78,20 @@
#define DRAKE_DEFINE_CLASS_TEMPLATE_INSTANTIATIONS_ON_DEFAULT_SCALARS( \
SomeType) \
template SomeType<double>; \
template SomeType<::maliput::drake::AutoDiffXd>; \
template SomeType<::maliput::drake::symbolic::Expression>;

/// Defines template instantiations for Drake's default nonsymbolic scalars.
/// This should only be used in .cc files, never in .h files.
#define \
DRAKE_DEFINE_CLASS_TEMPLATE_INSTANTIATIONS_ON_DEFAULT_NONSYMBOLIC_SCALARS( \
SomeType) \
template SomeType<double>; \
template SomeType<::maliput::drake::AutoDiffXd>;
template SomeType<double>;

/// Declares that template instantiations exist for Drake's default scalars.
/// This should only be used in .h files, never in .cc files.
#define DRAKE_DECLARE_CLASS_TEMPLATE_INSTANTIATIONS_ON_DEFAULT_SCALARS( \
SomeType) \
extern template SomeType<double>; \
extern template SomeType<::maliput::drake::AutoDiffXd>; \
extern template SomeType<::maliput::drake::symbolic::Expression>;

/// Declares that template instantiations exist for Drake's default nonsymbolic
Expand All @@ -103,7 +100,6 @@ extern template SomeType<::maliput::drake::symbolic::Expression>;
DRAKE_DECLARE_CLASS_TEMPLATE_INSTANTIATIONS_ON_DEFAULT_NONSYMBOLIC_SCALARS( \
SomeType) \
extern template SomeType<double>; \
extern template SomeType<::maliput::drake::AutoDiffXd>;

/// @}

Expand Down Expand Up @@ -203,7 +199,6 @@ constexpr auto Make_Function_Pointers_Pack1() { \
static constexpr auto Function_Femplates __attribute__((used)) = \
Make_Function_Pointers_Pack1< \
double, \
::maliput::drake::AutoDiffXd, \
::maliput::drake::symbolic::Expression>();

/// Defines template instantiations for Drake's default nonsymbolic scalars.
Expand All @@ -224,8 +219,6 @@ constexpr auto Make_Function_Pointers_Nonsym_Pack1() { \
return std::tuple_cat(Make_Function_Pointers_Nonsym_Pack2<Ts, Ts...>()...); \
} \
static constexpr auto Function_Templates_Nonsym __attribute__((used)) = \
Make_Function_Pointers_Nonsym_Pack1< \
double, \
::maliput::drake::AutoDiffXd>();
Make_Function_Pointers_Nonsym_Pack1<double>();

/// @}

0 comments on commit 78f9fe9

Please sign in to comment.