View Single Post
Old 09-18-2017, 03:22 PM   #6
earlevel
Human being with feelings
 
Join Date: Dec 2015
Posts: 331
Default

Quote:
Originally Posted by Tunca View Post
"inl" files are combination of .h and .cpp files but i can figure it out...
Ah, wondered why I'd never heard of it—apparently a Microsoft thing...

I could be wrong, but my quick take: Actually, it's not a combination of .h and .cpp in a single file, but a place to put inlines (keep .h from being polluted with inlines).

As such, assuming the .inl is used as intended, I'd expect you can just move it to a .h file. I suppose it's not being used as intended, though. However, .h and .cpp are just files, too. You can put everything in a .h or .cpp if you want. It will be awkward if you have to share interfaces, though, so we usually put interfaces in the .h and implementations in .cpp—and Microsoft apparently decided we needed another for the inline stuff.
earlevel is offline   Reply With Quote