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...
2行目が発生する一般的なエラーを知っている人はいますか? そして、最初の行がすでに発生しているのに、なぜ 2 番目の行が発生するのでしょうか?
情報をありがとう。
2行目が発生する一般的なエラーを知っている人はいますか?
たとえば、次のコードはこの値を生成します。
unsigned start = 5; unsigned end = 4; unsigned count = end - start; // will be 4294967295