eranpeer / FakeIt

C++ mocking made easy. A simple yet very expressive, headers only library for c++ mocking.
MIT License
1.22k stars 170 forks source link

Using this in an environment without RTTI? #340

Open retroandchill opened 2 weeks ago

retroandchill commented 2 weeks ago

I'm currently using this library for mocking functionality on an Unreal Engine project, but the problem I'm running into is that to use this library I need to enable RTTI, however, Unreal Engine prefers to have it off. I ended up enabling it for my code, but it seems like for some reason the mixed environment with RTTI on in some DLLs and off in others is causing issues. My question is, how big of a lift would it be to completely strip all uses of RTTI/dynamic_cast from this library to allow for it to be used in situations where that is disabled?