|
Boost : |
From: Jeremy Pack (rostovpack_at_[hidden])
Date: 2008-08-20 18:05:08
Boris,
On Wed, Aug 20, 2008 at 2:42 PM, Boris <boriss_at_[hidden]> wrote:
> When a library is loaded the return type of shared_library::open() or
> shared_library::is_open() can be used to detect whether the library was
> loaded successfully. When shared_library::call() is called the return type
> can be used to detect whether the exported map function could be called. But
> is there another function like is_open() which could be called afterwards to
> check if the map function was called successfully? The datatype
> basic_type_map only provides get() and no empty(). It would be required to
> call get() first and operate on the returned std::map type to see if it
> contains any factories?
>
I've just added size() and empty() functions to type_map.
You can also pass some sort of status message through the type_map to the
shared library if you'd like (using a string or some custom type).
I'm curious though, what type of problem were you having that led to this
request?
Jeremy Pack
http://boost-extension.blogspot.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk