Skip to content

Commit 54886ef

Browse files
committed
update test.cpp and tuple.h
1 parent aca8fdc commit 54886ef

File tree

2 files changed

+10
-2
lines changed
  • cpp
    • autosar/test/rules/A0-1-2
    • common/test/includes/standard-library

2 files changed

+10
-2
lines changed

cpp/autosar/test/rules/A0-1-2/test.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ void test_return_val() {
1717
A a2;
1818
a1 + a2; // COMPLIANT - `+` is a call to operator+, but is permitted by the
1919
// rule
20-
}
20+
int y = (int)3;
21+
}
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
namespace std {
22
template <class... Types> class tuple {};
33
template <class... Types> std::tuple<Types...> make_tuple(Types &&...args);
4-
} // namespace std
4+
// TODO change this to example from cpp standard
5+
struct ignore_t {
6+
template <typename T>
7+
constexpr // required since C++14
8+
void operator=(T&&) const noexcept {}
9+
};
10+
inline constexpr std::ignore_t ignore; // 'const' only until C++17
11+
} // namespace std

0 commit comments

Comments
 (0)