Changeset 348 for cpp/frams/genetics/f4


Ignore:
Timestamp:
04/09/15 23:51:28 (10 years ago)
Author:
Maciej Komosinski
Message:
  • explicit c_str() in SString instead of (const char*) cast
  • genetic converters and GenMan? are now thread-local which enables multi-threaded simulator separation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/f4/f4_general.cpp

    r287 r348  
    714714        // transform geno from string to nodes
    715715        f4rootnode = new f4_node();
    716         res = f4_processrec((const char*)genome, (unsigned)0, f4rootnode);
     716        res = f4_processrec(genome.c_str(), (unsigned)0, f4rootnode);
    717717        if ((res < 0) || (1 != f4rootnode->childCount()))
    718718        {
     
    11971197                buf = (char*)realloc(buf, len + 1);
    11981198        }
    1199         strcpy(buf, (const char*)out);
     1199        strcpy(buf, out.c_str());
    12001200}
    12011201
Note: See TracChangeset for help on using the changeset viewer.