我一直在编写一个朋友编写的一些 C++ 代码,并且在使用 gcc4.6 编译时遇到以下我从未见过的错误:
error: use of deleted function
‘GameFSM_<std::array<C, 2ul> >::hdealt::hdealt()’ is implicitly deleted because the default definition would be ill-formed:
uninitialized non-static const member ‘const h_t FlopPokerGameFSM_<std::array<C, 2ul> >::hdealt::h’
编辑:这来自使用 boost MSM 的部分代码:Boost Webpage
Edit2:源代码中的任何地方都没有= delete()
使用。
一般来说,这个错误是什么意思?发生此类错误时我应该寻找什么?