刚开始。不熟。函数参数里的&怎么判断是引用还是取地址。
int b; void a(int &p); void a(int* p);
a(b); a(&b);先这样理解。
void a (T&&) maybe rvalue reference of equal qualifier, void a(int &) maybe lvalue reference. not sure
OHOS ERROR In file included from .../.../foundation/multimodalinput/input/frameworks/proxy/events/src/axis_event.cpp:16:
OHOS ERROR In file included from .../.../foundation/multimodalinput/input/interfaces/native/innerkits/event/include/axis_event.h:21:
OHOS ERROR In file included from .../.../foundation/multimodalinput/input/interfaces/native/innerkits/event/include/input_event.h:28:
OHOS ERROR .../.../foundation/multimodalinput/input/interfaces/native/innerkits/event/include/pointer_event.h:34:29: error: unknown class name 'InputEvent'; did you mean 'RawInputEvent'?
OHOS ERROR class PointerEvent : public InputEvent {
OHOS ERROR ^~~~~~~~~~
OHOS ERROR RawInputEvent
OHOS ERROR .../.../foundation/multimodalinput/input/util/common/include/struct_multimodal.h:426:8: note: 'RawInputEvent' declared here
OHOS ERROR struct RawInputEvent {
OHOS ERROR ^
OHOS ERROR In file included from .../.../foundation/multimodalinput/input/frameworks/proxy/events/src/axis_event.cpp:16:
OHOS ERROR In file included from .../.../foundation/multimodalinput/input/interfaces/native/innerkits/event/include/axis_event.h:21:
OHOS ERROR In file included from .../.../foundation/multimodalinput/input/interfaces/native/innerkits/event/include/input_event.h:28:
OHOS ERROR .../.../foundation/multimodalinput/input/interfaces/native/innerkits/event/include/pointer_event.h:688:63: error: unknown type name 'InputEvent'; did you mean 'RawInputEvent'?
OHOS ERROR static std::shared_ptr from(std::shared_ptr inputEvent);
OHOS ERROR ^~~~~~~~~~
OHOS ERROR RawInputEvent
怎么回事?这是在inputevent.h中加了些东西。