You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
start is of type std::chrono::system_clock::time_point
current is of type std::chrono::high_resolution_clock::time_point
target is of type std::chrono::milliseconds
The difference (current - start) is computed using two different clock types, leading to incompatibility since start is initialized with std::chrono::system_clock::now() while current uses std::chrono::high_resolution_clock::now()
The error "no matching constructor for initialization of 'std::chrono::system_clock::time_point'" occurs because of how the start member, of type 'std::chrono::system_clock::time_point', is being initialized.
Additionally, the result of(current - start)is being compared withtarget , which is in milliseconds, but the result is incorrectly cast to std::chrono::seconds before the comparison. This creates a type mismatch during compilation
Reproduction Steps
No response
Expected behaviour
No response
Logs and Screenshots
The text was updated successfully, but these errors were encountered:
vSomeip Version
v3.5.1
Boost Version
1.76
Environment
Android TARGET_ARCH=x86_64
Describe the bug
File: https://github.com/COVESA/vsomeip/blob/master/test/common/include/common/test_timer.hpp
The error "no matching constructor for initialization of 'std::chrono::system_clock::time_point'" occurs because of how the
start
member, of type 'std::chrono::system_clock::time_point', is being initialized.Additionally, the result of(current - start)is being compared withtarget , which is in milliseconds, but the result is incorrectly cast to std::chrono::seconds before the comparison. This creates a type mismatch during compilation
Reproduction Steps
No response
Expected behaviour
No response
Logs and Screenshots
The text was updated successfully, but these errors were encountered: