-
-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google GMock and etl::delegate work not together #837
Comments
Unfortunately, many type traits are next to impossible for the ETL to reverse engineer due to the reliance on the compiler's 'insider knowledge'. |
The following does work for unittests: |
Hello, I use ETL in an embedded project. GoogleTest is used for software testing. There is now a major problem with etl::delegate and gmock when implementing a test.
The Test:
The Compiler Output (In German)
The problem is that the wrong delegate constructors are being called.
To fix the problem I have added a std::is_invocable_r check to the constructors
The quick fix
So the question now is how I should deal with the problem in the long term.
Best regards and sorry for my bad English
Nico
The text was updated successfully, but these errors were encountered: