Skip to content

Commit

Permalink
Make more VirtualCPU methods const
Browse files Browse the repository at this point in the history
  • Loading branch information
FergusonAJ committed Jun 30, 2022
1 parent b0279e4 commit c255c9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/emp/hardware/VirtualCPU.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ namespace emp{
nops_need_curated = true;
}
/// Return the first instruction in the instruction library
inst_t GetDefaultInst(){
inst_t GetDefaultInst() const{
return inst_t(0, GetInstLib()->GetID(0));
}
/// Add one or more default instructions to the end of the genome
Expand Down Expand Up @@ -720,7 +720,7 @@ namespace emp{
///
/// Each instruction is represented by a single character, dictated by the
/// instruction's ID.
std::string GetWorkingGenomeString(){
std::string GetWorkingGenomeString() const{
std::stringstream sstr;
sstr << "[" << genome_working.size() << "]";
for(size_t idx = 0; idx < genome_working.size(); idx++){
Expand All @@ -734,7 +734,7 @@ namespace emp{
///
/// Each instruction is represented by a single character, dictated by the
/// instruction's ID.
std::string GetGenomeString(){
std::string GetGenomeString() const{
std::stringstream sstr;
sstr << "[" << genome.size() << "]";
for(size_t idx = 0; idx < genome.size(); idx++){
Expand Down

0 comments on commit c255c9d

Please sign in to comment.