`.' cannot appear in a constant-expression

后端 未结 4 1049
悲哀的现实
悲哀的现实 2021-01-21 23:56

I\'m getting the following error:

`.\' cannot appear in a constant-expression

for this function (line 4):

    bool Covers(const         


        
4条回答
  •  再見小時候
    2021-01-22 00:16

    If stakx's answer is not sufficient, you may want to look into "min" and "max" variables. There may be some preprocessor definition, preventing the whole thing from working.

    Try adding

    #undef min   
    #undef max  
    

    just before your code, to see if the error stands.

提交回复
热议问题