forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common: Add internal::TypeHash<T> (RobotLocomotion#10718)
This soon will be used in AbstractValue to guard downcasts, instead of comparing the typeinfo objects. Unlike typeinfo checks, this mechanism does not have the hazard of falling back to string-comparison slow paths.
- Loading branch information
1 parent
e3e592b
commit 18c58bc
Showing
5 changed files
with
315 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "drake/common/hash.h" | ||
|
||
namespace drake { | ||
namespace internal { | ||
|
||
constexpr size_t FNV1aHasher::kFnvPrime; | ||
|
||
} // namespace internal | ||
} // namespace drake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.