在POP源代码中如下代码片段:

struct _POPPropertyAnimationState : _POPAnimationState
{
  NSUInteger valueCount;
  valueCount(nil)
}

 

使用Xcode6.0.1打开项目会出现如下截图错误(Xcode5中不会出现):

Xcode6中变量初始化的问题

 

错误信息:Cannot initialize a member subobject of type 'NSUInteger' (aka 'unsigned long') with an rvalue of type 'nullptr_t'

 

将valueCount初始化为valueCount(0)后,问题解决了。

struct _POPPropertyAnimationState : _POPAnimationState
{
  NSUInteger valueCount;
  valueCount(0)
}

  

 

相关文章:

  • 2022-12-23
  • 2021-12-05
  • 2021-07-16
  • 2021-11-29
  • 2021-06-09
  • 2021-11-17
  • 2021-04-12
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案