Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我使用 boost 单元测试来为我的代码运行一堆测试用例。
当我运行测试时,我得到以下奇怪的结果
Boost running 33 test cases... Boost running 4294967295 test cases...
有谁知道哪些常见错误会导致第二行发生?既然第一行已经发生,为什么第二行甚至会发生?
感谢您提供任何信息。
有谁知道哪些常见错误会导致第二行发生?
例如,以下代码会生成此值:
unsigned start = 5; unsigned end = 4; unsigned count = end - start; // will be 4294967295