diff --git a/include/fakeit/StubbingProgress.hpp b/include/fakeit/StubbingProgress.hpp index 0ca8439..1313a76 100644 --- a/include/fakeit/StubbingProgress.hpp +++ b/include/fakeit/StubbingProgress.hpp @@ -419,7 +419,7 @@ namespace fakeit { template static void Assign(ArgumentsTuple arg_vals, current_arg &&p, arglist&&... args) { - ParamWalker::template Assign(arg_vals, std::forward(args)...); + ParamWalker::Assign(arg_vals, std::forward(args)...); GetArg(std::forward(p)) = std::get(arg_vals); } }; diff --git a/include/mockutils/mscpp/VirtualTable.hpp b/include/mockutils/mscpp/VirtualTable.hpp index a4a0da1..bc963b0 100644 --- a/include/mockutils/mscpp/VirtualTable.hpp +++ b/include/mockutils/mscpp/VirtualTable.hpp @@ -220,8 +220,8 @@ namespace fakeit { C &cRef = *c; auto vt = VirtualTable::getVTable(cRef); void *dtorPtr = vt.getCookie(dtorCookieIndex); - void(*method)(C *) = reinterpret_cast(dtorPtr); - method(c); + void(C::*method)() = union_cast(dtorPtr); + (cRef.*method)(); return 0; } diff --git a/single_header/boost/fakeit.hpp b/single_header/boost/fakeit.hpp index 8727f17..5d080bd 100644 --- a/single_header/boost/fakeit.hpp +++ b/single_header/boost/fakeit.hpp @@ -2,7 +2,7 @@ /* * FakeIt - A Simplified C++ Mocking Framework * Copyright (c) Eran Pe'er 2013 - * Generated: 2023-07-08 18:53:41.524047 + * Generated: 2025-10-15 20:40:54.910611 * Distributed under the MIT License. Please refer to the LICENSE file at: * https://github.com/eranpeer/FakeIt */ @@ -5556,8 +5556,8 @@ namespace fakeit { C &cRef = *c; auto vt = VirtualTable::getVTable(cRef); void *dtorPtr = vt.getCookie(dtorCookieIndex); - void(*method)(C *) = reinterpret_cast(dtorPtr); - method(c); + void(C::*method)() = union_cast(dtorPtr); + (cRef.*method)(); return 0; } @@ -7851,7 +7851,7 @@ namespace fakeit { template static void Assign(ArgumentsTuple arg_vals, current_arg &&p, arglist&&... args) { - ParamWalker::template Assign(arg_vals, std::forward(args)...); + ParamWalker::Assign(arg_vals, std::forward(args)...); GetArg(std::forward(p)) = std::get(arg_vals); } }; diff --git a/single_header/catch/fakeit.hpp b/single_header/catch/fakeit.hpp index 3bb74ba..1d13897 100644 --- a/single_header/catch/fakeit.hpp +++ b/single_header/catch/fakeit.hpp @@ -2,7 +2,7 @@ /* * FakeIt - A Simplified C++ Mocking Framework * Copyright (c) Eran Pe'er 2013 - * Generated: 2023-07-08 18:53:41.573198 + * Generated: 2025-10-15 20:40:54.946323 * Distributed under the MIT License. Please refer to the LICENSE file at: * https://github.com/eranpeer/FakeIt */ @@ -5594,8 +5594,8 @@ namespace fakeit { C &cRef = *c; auto vt = VirtualTable::getVTable(cRef); void *dtorPtr = vt.getCookie(dtorCookieIndex); - void(*method)(C *) = reinterpret_cast(dtorPtr); - method(c); + void(C::*method)() = union_cast(dtorPtr); + (cRef.*method)(); return 0; } @@ -7889,7 +7889,7 @@ namespace fakeit { template static void Assign(ArgumentsTuple arg_vals, current_arg &&p, arglist&&... args) { - ParamWalker::template Assign(arg_vals, std::forward(args)...); + ParamWalker::Assign(arg_vals, std::forward(args)...); GetArg(std::forward(p)) = std::get(arg_vals); } }; diff --git a/single_header/cute/fakeit.hpp b/single_header/cute/fakeit.hpp index e312a1c..b991bc9 100644 --- a/single_header/cute/fakeit.hpp +++ b/single_header/cute/fakeit.hpp @@ -2,7 +2,7 @@ /* * FakeIt - A Simplified C++ Mocking Framework * Copyright (c) Eran Pe'er 2013 - * Generated: 2023-07-08 18:53:41.621542 + * Generated: 2025-10-15 20:40:54.994182 * Distributed under the MIT License. Please refer to the LICENSE file at: * https://github.com/eranpeer/FakeIt */ @@ -5521,8 +5521,8 @@ namespace fakeit { C &cRef = *c; auto vt = VirtualTable::getVTable(cRef); void *dtorPtr = vt.getCookie(dtorCookieIndex); - void(*method)(C *) = reinterpret_cast(dtorPtr); - method(c); + void(C::*method)() = union_cast(dtorPtr); + (cRef.*method)(); return 0; } @@ -7816,7 +7816,7 @@ namespace fakeit { template static void Assign(ArgumentsTuple arg_vals, current_arg &&p, arglist&&... args) { - ParamWalker::template Assign(arg_vals, std::forward(args)...); + ParamWalker::Assign(arg_vals, std::forward(args)...); GetArg(std::forward(p)) = std::get(arg_vals); } }; diff --git a/single_header/doctest/fakeit.hpp b/single_header/doctest/fakeit.hpp index 3ccd44d..2dc0b42 100644 --- a/single_header/doctest/fakeit.hpp +++ b/single_header/doctest/fakeit.hpp @@ -2,7 +2,7 @@ /* * FakeIt - A Simplified C++ Mocking Framework * Copyright (c) Eran Pe'er 2013 - * Generated: 2023-07-08 18:53:41.670237 + * Generated: 2025-10-15 20:40:55.041783 * Distributed under the MIT License. Please refer to the LICENSE file at: * https://github.com/eranpeer/FakeIt */ @@ -5549,8 +5549,8 @@ namespace fakeit { C &cRef = *c; auto vt = VirtualTable::getVTable(cRef); void *dtorPtr = vt.getCookie(dtorCookieIndex); - void(*method)(C *) = reinterpret_cast(dtorPtr); - method(c); + void(C::*method)() = union_cast(dtorPtr); + (cRef.*method)(); return 0; } @@ -7844,7 +7844,7 @@ namespace fakeit { template static void Assign(ArgumentsTuple arg_vals, current_arg &&p, arglist&&... args) { - ParamWalker::template Assign(arg_vals, std::forward(args)...); + ParamWalker::Assign(arg_vals, std::forward(args)...); GetArg(std::forward(p)) = std::get(arg_vals); } }; diff --git a/single_header/gtest/fakeit.hpp b/single_header/gtest/fakeit.hpp index 7ceff56..5f0a6eb 100644 --- a/single_header/gtest/fakeit.hpp +++ b/single_header/gtest/fakeit.hpp @@ -2,7 +2,7 @@ /* * FakeIt - A Simplified C++ Mocking Framework * Copyright (c) Eran Pe'er 2013 - * Generated: 2023-07-08 18:53:41.718989 + * Generated: 2025-10-15 20:40:55.079306 * Distributed under the MIT License. Please refer to the LICENSE file at: * https://github.com/eranpeer/FakeIt */ @@ -5521,8 +5521,8 @@ namespace fakeit { C &cRef = *c; auto vt = VirtualTable::getVTable(cRef); void *dtorPtr = vt.getCookie(dtorCookieIndex); - void(*method)(C *) = reinterpret_cast(dtorPtr); - method(c); + void(C::*method)() = union_cast(dtorPtr); + (cRef.*method)(); return 0; } @@ -7816,7 +7816,7 @@ namespace fakeit { template static void Assign(ArgumentsTuple arg_vals, current_arg &&p, arglist&&... args) { - ParamWalker::template Assign(arg_vals, std::forward(args)...); + ParamWalker::Assign(arg_vals, std::forward(args)...); GetArg(std::forward(p)) = std::get(arg_vals); } }; diff --git a/single_header/mettle/fakeit.hpp b/single_header/mettle/fakeit.hpp index 416a5c0..8632ad5 100644 --- a/single_header/mettle/fakeit.hpp +++ b/single_header/mettle/fakeit.hpp @@ -2,7 +2,7 @@ /* * FakeIt - A Simplified C++ Mocking Framework * Copyright (c) Eran Pe'er 2013 - * Generated: 2023-07-08 18:53:41.768014 + * Generated: 2025-10-15 20:40:55.121053 * Distributed under the MIT License. Please refer to the LICENSE file at: * https://github.com/eranpeer/FakeIt */ @@ -5543,8 +5543,8 @@ namespace fakeit { C &cRef = *c; auto vt = VirtualTable::getVTable(cRef); void *dtorPtr = vt.getCookie(dtorCookieIndex); - void(*method)(C *) = reinterpret_cast(dtorPtr); - method(c); + void(C::*method)() = union_cast(dtorPtr); + (cRef.*method)(); return 0; } @@ -7838,7 +7838,7 @@ namespace fakeit { template static void Assign(ArgumentsTuple arg_vals, current_arg &&p, arglist&&... args) { - ParamWalker::template Assign(arg_vals, std::forward(args)...); + ParamWalker::Assign(arg_vals, std::forward(args)...); GetArg(std::forward(p)) = std::get(arg_vals); } }; diff --git a/single_header/mstest/fakeit.hpp b/single_header/mstest/fakeit.hpp index 32af49c..e7dc792 100644 --- a/single_header/mstest/fakeit.hpp +++ b/single_header/mstest/fakeit.hpp @@ -2,7 +2,7 @@ /* * FakeIt - A Simplified C++ Mocking Framework * Copyright (c) Eran Pe'er 2013 - * Generated: 2023-07-08 18:53:41.817043 + * Generated: 2025-10-15 20:40:55.169261 * Distributed under the MIT License. Please refer to the LICENSE file at: * https://github.com/eranpeer/FakeIt */ @@ -5545,8 +5545,8 @@ namespace fakeit { C &cRef = *c; auto vt = VirtualTable::getVTable(cRef); void *dtorPtr = vt.getCookie(dtorCookieIndex); - void(*method)(C *) = reinterpret_cast(dtorPtr); - method(c); + void(C::*method)() = union_cast(dtorPtr); + (cRef.*method)(); return 0; } @@ -7840,7 +7840,7 @@ namespace fakeit { template static void Assign(ArgumentsTuple arg_vals, current_arg &&p, arglist&&... args) { - ParamWalker::template Assign(arg_vals, std::forward(args)...); + ParamWalker::Assign(arg_vals, std::forward(args)...); GetArg(std::forward(p)) = std::get(arg_vals); } }; diff --git a/single_header/nunit/fakeit.hpp b/single_header/nunit/fakeit.hpp index 402c54b..772836a 100644 --- a/single_header/nunit/fakeit.hpp +++ b/single_header/nunit/fakeit.hpp @@ -2,7 +2,7 @@ /* * FakeIt - A Simplified C++ Mocking Framework * Copyright (c) Eran Pe'er 2013 - * Generated: 2023-07-08 18:53:41.866779 + * Generated: 2025-10-15 20:40:55.200480 * Distributed under the MIT License. Please refer to the LICENSE file at: * https://github.com/eranpeer/FakeIt */ @@ -5528,8 +5528,8 @@ namespace fakeit { C &cRef = *c; auto vt = VirtualTable::getVTable(cRef); void *dtorPtr = vt.getCookie(dtorCookieIndex); - void(*method)(C *) = reinterpret_cast(dtorPtr); - method(c); + void(C::*method)() = union_cast(dtorPtr); + (cRef.*method)(); return 0; } @@ -7823,7 +7823,7 @@ namespace fakeit { template static void Assign(ArgumentsTuple arg_vals, current_arg &&p, arglist&&... args) { - ParamWalker::template Assign(arg_vals, std::forward(args)...); + ParamWalker::Assign(arg_vals, std::forward(args)...); GetArg(std::forward(p)) = std::get(arg_vals); } }; diff --git a/single_header/qtest/fakeit.hpp b/single_header/qtest/fakeit.hpp index 3322cfc..bed095d 100644 --- a/single_header/qtest/fakeit.hpp +++ b/single_header/qtest/fakeit.hpp @@ -2,7 +2,7 @@ /* * FakeIt - A Simplified C++ Mocking Framework * Copyright (c) Eran Pe'er 2013 - * Generated: 2023-07-08 18:53:41.915517 + * Generated: 2025-10-15 20:40:55.248030 * Distributed under the MIT License. Please refer to the LICENSE file at: * https://github.com/eranpeer/FakeIt */ @@ -5529,8 +5529,8 @@ namespace fakeit { C &cRef = *c; auto vt = VirtualTable::getVTable(cRef); void *dtorPtr = vt.getCookie(dtorCookieIndex); - void(*method)(C *) = reinterpret_cast(dtorPtr); - method(c); + void(C::*method)() = union_cast(dtorPtr); + (cRef.*method)(); return 0; } @@ -7824,7 +7824,7 @@ namespace fakeit { template static void Assign(ArgumentsTuple arg_vals, current_arg &&p, arglist&&... args) { - ParamWalker::template Assign(arg_vals, std::forward(args)...); + ParamWalker::Assign(arg_vals, std::forward(args)...); GetArg(std::forward(p)) = std::get(arg_vals); } }; diff --git a/single_header/standalone/fakeit.hpp b/single_header/standalone/fakeit.hpp index 437a337..1fe9e26 100644 --- a/single_header/standalone/fakeit.hpp +++ b/single_header/standalone/fakeit.hpp @@ -2,7 +2,7 @@ /* * FakeIt - A Simplified C++ Mocking Framework * Copyright (c) Eran Pe'er 2013 - * Generated: 2023-07-08 18:53:41.964544 + * Generated: 2025-10-15 20:40:55.295920 * Distributed under the MIT License. Please refer to the LICENSE file at: * https://github.com/eranpeer/FakeIt */ @@ -5597,8 +5597,8 @@ namespace fakeit { C &cRef = *c; auto vt = VirtualTable::getVTable(cRef); void *dtorPtr = vt.getCookie(dtorCookieIndex); - void(*method)(C *) = reinterpret_cast(dtorPtr); - method(c); + void(C::*method)() = union_cast(dtorPtr); + (cRef.*method)(); return 0; } diff --git a/single_header/tpunit/fakeit.hpp b/single_header/tpunit/fakeit.hpp index eae5e62..c42d2f1 100644 --- a/single_header/tpunit/fakeit.hpp +++ b/single_header/tpunit/fakeit.hpp @@ -2,7 +2,7 @@ /* * FakeIt - A Simplified C++ Mocking Framework * Copyright (c) Eran Pe'er 2013 - * Generated: 2023-07-08 18:53:42.013668 + * Generated: 2025-10-15 20:40:55.329457 * Distributed under the MIT License. Please refer to the LICENSE file at: * https://github.com/eranpeer/FakeIt */ @@ -5568,8 +5568,8 @@ namespace fakeit { C &cRef = *c; auto vt = VirtualTable::getVTable(cRef); void *dtorPtr = vt.getCookie(dtorCookieIndex); - void(*method)(C *) = reinterpret_cast(dtorPtr); - method(c); + void(C::*method)() = union_cast(dtorPtr); + (cRef.*method)(); return 0; } @@ -7863,7 +7863,7 @@ namespace fakeit { template static void Assign(ArgumentsTuple arg_vals, current_arg &&p, arglist&&... args) { - ParamWalker::template Assign(arg_vals, std::forward(args)...); + ParamWalker::Assign(arg_vals, std::forward(args)...); GetArg(std::forward(p)) = std::get(arg_vals); } };