Changeset c075647a in mainline for uspace/lib/cpp/include/internal/test/test.hpp
- Timestamp:
- 2018-07-05T21:41:23Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 46cf7bf
- Parents:
- eaabd7d
- git-author:
- Dzejrou <dzejrou@…> (2018-05-12 01:07:18)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:23)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/internal/test/test.hpp
reaabd7d rc075647a 32 32 #include <utility> 33 33 #include <iterator> 34 #include <type_traits> 34 35 35 36 namespace std::test … … 83 84 Iterator2 first2, Iterator2 last2) 84 85 { 85 if (std::distance(first1, last1) != std::distance(first2, last2)) 86 auto len1 = std::distance(first1, last1); 87 auto len2 = std::distance(first2, last2); 88 89 using common_t = std::common_type_t<decltype(len1), decltype(len2)>; 90 auto len1_common = static_cast<common_t>(len1); 91 auto len2_common = static_cast<common_t>(len2); 92 93 if (len1_common != len2_common) 86 94 return false; 87 95
Note:
See TracChangeset
for help on using the changeset viewer.