incomplete type for std::any when GMOCKing interface

后端 未结 2 1564
温柔的废话
温柔的废话 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:53

    Additional information about this issue, that I have got a workaround to use any with gmock in gcc 9.1.0, use std::experimental::fundamentals_v1::any instead of std::any, and it works fine.

提交回复
热议问题