On Tue, Nov 17, 2009 at 4:31 PM, Gustavo Carneiro <gjc...@gm...> wrote:
> It looks like type_traits.impl_details.find_value_type is what I need. It
> seems to work fine for my needs, i.e. template arguments are user classes.
>
> I am only concerned about two things:
>
> - I'm not too fond of using "implementation details"
:-). I don't have tests for this functionality. I checked that it
works for me ( extracting element, value types from sdt containers ).
If you submit a test for it, I will be glad to make this functionality
"public".
> - The function is relatively slow (almost half a second each query, and I have a few dozen queries)
:-( Unfortunately I don't have a use case, which could stress this
function performance. Can you run the code under profile and send me
the data?
> But other than that, I guess my problem is solved.
>
> Thanks! :-)
You are welcome.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|