// // Temporarily turn off the warnings under the Borland compiler that // say 'Functions containing ... cannot be inlined' // #if defined(__BORLANDC__) #pragma warn -inl #endifI suppose it doesn't work because its being expanded elsewhere - where that pragma doesn't apply. So, sorry, I don't have a nice solution for this other than disabling this warning for your entire project.
Programming Tips - Borland C++ 5.02: string.h(549,3): Functions containing for are not expanded inline
Date: 2021jul16 Language: C/C++ Keywords: obsolete, correction Product: Borland C++ 5.02 Q. Borland C++ 5.02: string.h(549,3): Functions containing for are not expanded inline A. Yeah, the headers shipped with the compiler should not give warnings. File string.h actually has code to suppress that warning on line 461. But it doesn't seem to work: