From 1489e27c865989aef18f3d6ecedadfb06ef3f616 Mon Sep 17 00:00:00 2001 From: Richard Date: Tue, 30 Sep 2025 16:36:50 -0600 Subject: [PATCH] Don't initialize a reference from a temporary in molecular_dynamics_cells Fixes #99 --- examples/molecular_dynamics_cells.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/molecular_dynamics_cells.cpp b/examples/molecular_dynamics_cells.cpp index dcb7c5fda..d1c50bcfb 100644 --- a/examples/molecular_dynamics_cells.cpp +++ b/examples/molecular_dynamics_cells.cpp @@ -162,7 +162,7 @@ class md_system_bs params const &m_p; size_t m_ncellx , m_ncelly; - interaction_functor( hash_vector const& cells_begin , hash_vector const& cells_end , hash_vector pos_order , + interaction_functor( hash_vector const& cells_begin , hash_vector const& cells_end , hash_vector const& pos_order , point_vector const&x , point_vector const& v , params const &p ) : m_cells_begin( cells_begin ) , m_cells_end( cells_end ) , m_order( pos_order ) , m_x( x ) , m_v( v ) , m_p( p ) { }