incomplete type for std::any when GMOCKing interface

后端 未结 2 1566
温柔的废话
温柔的废话 2021-01-25 19:32

I have a very weird compilation problem with this snippet:

#include 
#include 


struct Class
{
    virtual std::any get(int, int         


        
2条回答
  •  说谎
    说谎 (楼主)
    2021-01-25 19:49

    This is libstdc++ bug 90415.

    I am not sure what it is about std::any that causes this problem. Note that your example fails on clang using libstdc++, but succeeds when using libc++.

提交回复
热议问题