像描述的文档中那样使用 QUERY 时出现编译错误

Compile error when using QUERY like in documentaion described

我正在按照文档进行操作,但在以下示例的编译过程中出现错误: https://oatpp.io/docs/components/api-controller/#query-parameters-mapping Visual Studio 2017 抱怨 C2839:invalid return type 'type' for overloaded 'operator ->' and C2232 '->' : left operand has 'class-key' type, use '.'当我尝试使用示例中提到的 age 时。

ENDPOINT("GET", "/users", getUsers,
QUERY(Int32, age)) 
{
  OATPP_LOGD("Test", "age=%d", age->getValue());
  return createResponse(Status::CODE_200, "OK");
}

usage/example 出了什么问题?

文档已过时,解决方案是:

OATPP_LOGD("Test", "age=%d", *age);