[libcxx-commits] [PATCH] D58587: Implement deduction guides for <map>

Marshall Clow via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Feb 25 11:54:06 PST 2019


mclow.lists added inline comments.


================
Comment at: test/std/containers/associative/map/map.cons/deduct.pass.cpp:46
+
+    static_assert(std::is_same_v<decltype(m), std::map<int, int>>, "");
+    std::pair<const int, int> expected_m[] = { {1,1}, {2,2}, {3,1}, {INT_MAX,1} };
----------------
We have a macro called `ASSERT_SAME_TYPE`. You get it by including `test_macros.h`. Easier to read than `std::is_same_v<...`


Repository:
  rCXX libc++

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58587/new/

https://reviews.llvm.org/D58587





More information about the libcxx-commits mailing list