交差点の2つのベクトルをチェックする最良の方法を探しています。 for (auto const & first: first_vector)
for (auto const & next: next_vector)
if first == next
return false;
のようなネストされたループは、仕事をすることができますが、それはBoost.Testっ
私はテストコードを解析するためにPVS-Studioを使用しています。私はまだ最後の行に対する警告V522 There might be dereferencing of a potential null pointer 'animal'を取得ただし、フォーム const noAnimal* animal = dynamic_cast<noAnimal*>(...);
BOOST_REQUIRE