Return type before or after __declspec?

use

bool __declspec(dllexport) function() { return true; } 

or

 __declspec(dllexport) bool function() { return true; } 

What is the difference between the two? Will this affect the execution of functions or what they return when called from the application? (this code refers to the DLL).

+6
source share
1 answer

If both of them are accepted by the compiler, it is difficult to understand how they can be anything other than exactly equivalent.

+2
source

All Articles