Skip to content

Commit 2875284

Browse files
authored
Merge pull request #100 from LegalizeAdulthood/legalize-99
Don't initialize a reference from a temporary in molecular_dynamics_cells
2 parents 0ce2771 + 1489e27 commit 2875284

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)