Compiler error when using “near” as a variable name

前端 未结 1 1017
闹比i
闹比i 2021-01-24 15:43

I get a very weird error in my code. I created this class in C++:

class Tester{
    float f;
    Tester(float,float);
};

and i implemented it l

相关标签:
1条回答
  • 2021-01-24 16:09

    It seems that near is defined as a macro by the compiler in some header. Usually this macro is used with "near" pointers.

    0 讨论(0)
提交回复
热议问题