Boost logo

Boost :

Subject: Re: [boost] [Boost.DLL] Formal Review request
From: Antony Polukhin (antoshkka_at_[hidden])
Date: 2014-11-20 09:29:02


2014-11-20 17:09 GMT+04:00 Klaim - Joël Lamotte <mjklaim_at_[hidden]>:

> Antony,
>
> On Fri, Oct 3, 2014 at 3:24 PM, Klaim - Joël Lamotte <mjklaim_at_[hidden]>
> wrote:
>
> > Instead of :
> >
> > BOOST_DLL_ALIAS(
> > my_namespace::cpp_function_name, cpp_function_alias_name
> > )
> >
> > Something like:
> >
> > BOOST_DLL_AUTO_ALIAS( my_namespace::cpp_function_name )
> >
>
> did you have the time to consider this suggestion? Is this doable?
> I don't see it in the develop branch so if you found an issue with this I
> would like to learn from it.
>

The idea is great, but I do not know how to implement it.

The following macro:

BOOST_DLL_ALIAS(
     my_namespace::cpp_function_name, cpp_function_alias_name
)

is expanded into the following:

extern "C" void* cpp_function_alias_name = &my_namespace::cpp_function_name;

It means that BOOST_DLL_AUTO_ALIAS(my_namespace::cpp_function_name) must be
able somehow to cut off the namespaces leaving only the variable/function
name.

-- 
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