8
Essayez d'utiliser quelque chose comme le suivant avec un tableau de caractères, mais il ne compile pas. Mais l'exemple avec court [] fonctionne bien. Une idée pourquoi? :)Boost ForEach Question
char someChars[] = {'s','h','e','r','r','y'};
BOOST_FOREACH(char& currentChar, someChars)
{
}
short array_short[] = { 1, 2, 3 };
BOOST_FOREACH(short & i, array_short)
{
++i;
}
Un grand merci. Était trop rapide pour poster à SO. :) – bobber205