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 TypeHasher test for non-type templates (RobotLocomotion#1…
…0799) Until C++17 'template <auto...>' arrives, it is somewhat difficult to unpack non-type template parameter packs. In the meantime, we can detect this condition and report a failure to hash. In practice such templates being used in Value<T> are rare -- currently there is on only one example. Also remove 'vector<const double>' unit test case; as it turns out, that is not a valid template argument for vector in the first place.
- Loading branch information
1 parent
9a8a746
commit 468d972
Showing
2 changed files
with
63 additions
and
37 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