For example I have 100 *.c files.
50 of them have to compile as c++.
Can it be solved without file renaming?
Ah, a different question than I thought. For B2 you can cast the source to specific types of files. For example:
----
import cast ;
exe hello : [ cast _ cpp : a.c b.c ] ;
----