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
  • TabularUnified cpp/frams/_demos/loader_test.cpp ΒΆ

    r299 r348  
    4545                else
    4646                        {
    47                         if (strcmp((const char*)loaded->name,selected))
     47                        if (strcmp(loaded->name.c_str(),selected))
    4848                                continue;
    4949                        }
    50                 puts((const char*)loaded->genotype);
     50                puts(loaded->genotype.c_str());
    5151                return 0;
    5252                }
    53         fprintf(stderr,"%d. %s\t(%d characters)\n",count,(const char*)loaded->name,loaded->genotype.len());
     53        fprintf(stderr,"%d. %s\t(%d characters)\n",count,loaded->name.c_str(),loaded->genotype.len());
    5454        }
    5555// the loop repeats until loaded==NULL, which could be beacause of error
    5656if (loader.getStatus()==MiniGenotypeLoader::OnError)
    57         fprintf(stderr,"Error: %s",(const char*)loader.getError());
     57        fprintf(stderr,"Error: %s",loader.getError().c_str());
    5858// (otherwise it was the end of the file)
    5959if (selected)
Note: See TracChangeset for help on using the changeset viewer.