A
abir
Hi,
this is not related to strict c++ , but macro.
I want a statement to be generated like
std::size_t count = sizeof(trace2)/sizeof(coord_t);
for (std::size_t i = 0; i< count; i += 2){
std::cout<<trace2<<" "<<trace2[i+1]<<std::endl;
}
when i write LOAD_TOKEN(2)
so the main problem is to essentially catenate "token" with a token
id.
I am looking at ##, but in between something fails to compile.
thanks
abir
this is not related to strict c++ , but macro.
I want a statement to be generated like
std::size_t count = sizeof(trace2)/sizeof(coord_t);
for (std::size_t i = 0; i< count; i += 2){
std::cout<<trace2<<" "<<trace2[i+1]<<std::endl;
}
when i write LOAD_TOKEN(2)
so the main problem is to essentially catenate "token" with a token
id.
I am looking at ##, but in between something fails to compile.
thanks
abir