How to initialize a static member of a parametrized-template class

前端 未结 2 683
感情败类
感情败类 2021-01-24 15:11

I don\'t think my question is dupplicate of this one.

what I try to do:

template
class CReentranceLock
{
public:
    CR         


        
2条回答
  •  半阙折子戏
    2021-01-24 15:56

    bool CReentranceLock::s_bLock=false; 
    

    This should be:

    bool CReentranceLock::s_bLock=false; 
    

提交回复
热议问题