MPI: const correctness in Static Assignment constructor and reinit functions.

This commit is contained in:
Benjamin Bouvier 2012-08-03 16:41:23 +02:00
commit 026764215f
2 changed files with 4 additions and 4 deletions

View file

@ -177,7 +177,7 @@ namespace eo
* @param workers std::vector of MPI ranks of workers which will be used.
* @param runs Fixed amount of runs, strictly positive.
*/
StaticAssignmentAlgorithm( std::vector<int>& workers, int runs );
StaticAssignmentAlgorithm( const std::vector<int>& workers, int runs );
/**
* @brief Uses a range of workers.
@ -215,7 +215,7 @@ namespace eo
* @param workers Vector of hosts' ranks
* @param runs Fixed amount of runs, strictly positive.
*/
void init( std::vector<int> & workers, int runs );
void init( const std::vector<int> & workers, int runs );
public:
int get( );