Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Explicit template instantiation #168

Open
KTRosenberg opened this issue Apr 14, 2023 · 0 comments
Open

Explicit template instantiation #168

KTRosenberg opened this issue Apr 14, 2023 · 0 comments

Comments

@KTRosenberg
Copy link

KTRosenberg commented Apr 14, 2023

I’m trying to reduce the compiletime of my project by explicitly instantiating templates, but am finding it challenging to figure out how to get explicit instantiation for robin_hood unordered node map / flat map to compile.
For an example, I am going for <unsigned int, std::vector>.

I’ve been successful before when it comes to getting explicit template instantiation working, but I believe robin_hood is somehow more complex and the compiler messages are quite vague.

Would you please advise on how to do explicit instantiation (extern template) in this case? I know it is probably going to use robon_hood::Table.

Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant