jjzjj

c++ - 无法在 C++ Actor Framework 中声明模板类型的 actor

我正在尝试在C++actorframework(CAF)中声明一个强类型的actor,但由于某种原因我的代码无法编译。你能告诉我它有什么问题吗?#include"caf/all.hpp"templateclassDiscoverRequest{};templateclassDiscoverResponse{};templateclassDataRequest{};templateclassDataResponse{};templateusingBlockActor=caf::typed_actor>::with>,caf::replies_to>::with>>;错误信息:Block.