Boost logo

Boost :

Subject: Re: [boost] [Boost-users] Boost.DLL formal review is ongoing
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2015-07-04 05:56:39


2015-07-04 0:16 GMT+03:00 Klaim - Joël Lamotte <mjklaim_at_[hidden]>:

> Note:
> http://apolukhin.github.io/Boost.DLL/boost/dll/symbol_location.html
>
> 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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk