2015-07-04 0:16 GMT+03:00 Klaim - Joël Lamotte <mjklaim@gmail.com>:
Note:

I do not understand how to use this function, what is T here?

T could be any variable or function that you're interested in:

int var;
void foo() {}

int main() {
    dll::symbol_location(var); // returns program location
    dll::symbol_location(foo); // returns program location
    dll::symbol_location(std::cerr); // probably returns location of libstdc++
    dll::symbol_location(std::placeholders::_1); // probably returns location of libstdc++
    dll::symbol_location(errno); // probably returns location of libc
}

I'll clarify the docs, thanks for the note!

--
Best regards,
Antony Polukhin