Ignore:
Timestamp:
04/09/15 23:51:28 (5 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/_demos/neuro_layout_test.cpp

    r317 r348  
    9494        }
    9595SString gen(argv[1]);
    96 if (!strcmp(gen,"-"))
     96if (!strcmp(gen.c_str(),"-"))
    9797        {
    9898        gen=0;
     
    116116        {
    117117        int *xywh=nn_layout.GetXYWH(i);
    118         printf("#%-3d %s\t%d,%d\t%dx%d\n",i,(const char*)m.getNeuro(i)->getClassName(),
     118        printf("#%-3d %s\t%d,%d\t%dx%d\n",i,m.getNeuro(i)->getClassName().c_str(),
    119119               xywh[0],xywh[1],xywh[2],xywh[3]);
    120120        }
     
    130130        {
    131131        int *xywh=nn_layout.GetXYWH(i);
    132         SString label=SString::sprintf("%d:%s",i,(const char*)m.getNeuro(i)->getClassName());
    133         screen.put(xywh[0],xywh[1],(const char*)label);
     132        SString label=SString::sprintf("%d:%s",i,m.getNeuro(i)->getClassName().c_str());
     133        screen.put(xywh[0],xywh[1],label.c_str());
    134134        }
    135135screen.print();
Note: See TracChangeset for help on using the changeset viewer.