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
./test.exe
terminate called after throwing an instance of 'boost::wrapexcept<boost::bad_any_cast>'
what(): boost::bad_any_cast: failed conversion using boost::any_cast
Aborted (core dumped)
if you remove -fno-rtti flag then it works but down stream projects may choose to not use rtti in which case we have problems.
The text was updated successfully, but these errors were encountered:
XRT is built with rtti enabled which is the default in modern C++. I don't understand the aversion to building an application with rtti enabled, but regardless you don't have to, but you just can't use the info API which requires rtti. No other APIs rely on rtti being enabled.
Currently some parts of the XRT C++ API require use of RTTI which down stream projects may have disabled. To see the issue you may build this snippet.
https://gist.github.com/nirvedhmeshram/eb051397606439aa50016780ead8cf00
With the following compile command
We will have a runtime error with
if you remove
-fno-rtti
flag then it works but down stream projects may choose to not use rtti in which case we have problems.The text was updated successfully, but these errors were encountered: