Boost logo

Boost Users :

Subject: Re: [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-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net