C++ member functions vs C++ free-functions, which compiles faster???

unlvsur unlvsur unlvsur@live.com
Sat Aug 7 20:59:39 GMT 2021


struct foo
{
void write()
{
            //dosomething
}
};

Vs

struct foo
{
};
Inline void write(foo&)
{
            //dosomething
}

Which one compiles faster?
My guess is that the first one compiles faster since it is more context free compared to 2nd one.

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10



More information about the Gcc mailing list