# Wrapping Templated C++-functions and embedding Julia-functions subject to templates

**URL:** <https://discourse.julialang.org/t/wrapping-templated-c-functions-and-embedding-julia-functions-subject-to-templates/69282>\
**Category:** General Usage\
**Tags:** c, cxxwrap\
**Created:** [October 6, 2021, 7:48am UTC](https://discourse.julialang.org/t/wrapping-templated-c-functions-and-embedding-julia-functions-subject-to-templates/69282 "2021-10-06T07:48:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonas\_Hjulstad](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jonas_hjulstad/32/9146_2.png) [@Jonas\_Hjulstad](https://discourse.julialang.org/u/Jonas_Hjulstad)\
**Post date:** [October 6, 2021, 7:48am UTC](https://discourse.julialang.org/t/wrapping-templated-c-functions-and-embedding-julia-functions-subject-to-templates/69282/1 "2021-10-06T07:48:56Z")

</div>

I’m looking into the idea of treating instructions as data for an C++ Eigen-algorithm.  
I already assume that the g+±compiler will be able to resolve the wrapping to Julia using  
Cxxwrap: [GitHub - JuliaInterop/CxxWrap.jl: Package to make C++ libraries available in Julia](https://github.com/JuliaInterop/CxxWrap.jl)

The number of functions implemented on the C+±side will vary with the C++ main-executable implementations. Is it possible to (‘dynamically’) wrap the Eigen-dependent Julia-implementation back to C++?
