Boost logo

Boost Users :

Subject: Re: [Boost-users] Checking if a stand-alone function exists
From: Nat Linden (nat_at_[hidden])
Date: 2010-10-27 09:08:48


On Mon, Oct 25, 2010 at 4:48 PM, Ioannis Papadopoulos
<ipapadop_at_[hidden]>wrote:

Is there a way of checking if a stand-alone function exists?
>

Maybe you want a linker "weak reference"? I don't know how portable the
concept is, but it's been around for a while. The idea is that your calling
module tries to reference an extern. But because that extern is marked
(somehow) as a weak reference, absence of that symbol at link time, instead
of failing the build, produces an executable in which the referenced symbol
has value 0 instead of pointing to a function.



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