From 2225099e236c734d13fb1ab2ef9bfa46cbc21027 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 1 May 2018 12:54:15 +0200 Subject: [PATCH] Simplify the last AssertThrow --- source/particles/particle_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/particles/particle_handler.cc b/source/particles/particle_handler.cc index c2a4305a94..3bc443bbd9 100644 --- a/source/particles/particle_handler.cc +++ b/source/particles/particle_handler.cc @@ -837,7 +837,7 @@ namespace Particles recv_data_it); } - AssertThrow(total_recv_data == 0 || recv_data_it == &recv_data.back()+1, + AssertThrow(recv_data_it == recv_data.data() + recv_data.size(), ExcMessage("The amount of data that was read into new particles " "does not match the amount of data sent around.")); } -- 2.39.5