mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
SCRIPT namespace replacements
This commit is contained in:
committed by
Peter Johnson
parent
ae6c043632
commit
9aca8e0fd6
@@ -22,7 +22,7 @@
|
||||
#include <utility>
|
||||
#include <variant>
|
||||
|
||||
using namespace wpi;
|
||||
using namespace wpi::util;
|
||||
|
||||
namespace {
|
||||
uint32_t getTestKey(int i, uint32_t *) { return i; }
|
||||
@@ -701,7 +701,7 @@ struct AlwaysEqType {
|
||||
};
|
||||
} // namespace
|
||||
|
||||
namespace wpi {
|
||||
namespace wpi::util {
|
||||
template <typename T>
|
||||
struct DenseMapInfo<T, std::enable_if_t<std::is_base_of_v<A, T>>> {
|
||||
static inline T getEmptyKey() { return {static_cast<int>(~0)}; }
|
||||
@@ -721,7 +721,7 @@ template <> struct DenseMapInfo<AlwaysEqType> {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
} // namespace wpi
|
||||
} // namespace wpi::util
|
||||
|
||||
namespace {
|
||||
TEST(DenseMapCustomTest, SFINAEMapInfo) {
|
||||
|
||||
Reference in New Issue
Block a user