Skip to content

Commit 1489e27

Browse files
LegalizeAdulthoodmborland
authored andcommitted
Don't initialize a reference from a temporary in molecular_dynamics_cells
Fixes #99
1 parent 0ce2771 commit 1489e27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/molecular_dynamics_cells.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class md_system_bs
162162
params const &m_p;
163163
size_t m_ncellx , m_ncelly;
164164

165-
interaction_functor( hash_vector const& cells_begin , hash_vector const& cells_end , hash_vector pos_order ,
165+
interaction_functor( hash_vector const& cells_begin , hash_vector const& cells_end , hash_vector const& pos_order ,
166166
point_vector const&x , point_vector const& v , params const &p )
167167
: m_cells_begin( cells_begin ) , m_cells_end( cells_end ) , m_order( pos_order ) , m_x( x ) , m_v( v ) ,
168168
m_p( p ) { }

0 commit comments

Comments
 (0)