# Questions from a Fortran HPC Webinar

**URL:** <https://fortran-lang.discourse.group/t/questions-from-a-fortran-hpc-webinar/1516>\
**Category:** Help\
**Created:** [July 5, 2021, 10:45am UTC](https://fortran-lang.discourse.group/t/questions-from-a-fortran-hpc-webinar/1516 "2021-07-05T10:45:45Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![ivanpribec](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/ivanpribec/32/3290_2.png) [@ivanpribec](https://fortran-lang.discourse.group/u/ivanpribec)\
**Post date:** [July 8, 2021, 1:15pm UTC](https://fortran-lang.discourse.group/t/questions-from-a-fortran-hpc-webinar/1516/15 "2021-07-08T13:15:34Z")

</div>

> [@Dauptain](#):
>
> A3 - What about newer C++ features (constexpr, auto, modules) and the ISO\_C\_BINDING? Of course the Fortran binding is for C, but it is often interchangeably used and I wonder if there are plans to support CPP. Essentially at the moment using ISO\_C\_BINDING seems to restrict both the Fortran features and C(++) features which are usable. How do you see this being resolved?

I am aware of two projects which are somewhat able to close the gap between C++ and Fortran: [shroud](https://github.com/LLNL/shroud) and [swig-fortran](https://github.com/swig-fortran) (also see [this](http://www.icl.utk.edu/~luszczek/conf/2019/siam_cse/siam-cse-johnsonsr.pdf) presentation or the [arXiv](https://arxiv.org/abs/1904.02546) paper). The book _Scientific Software Design_ by Damian @rouson contains a great description of the challenges involved in interfacing C++ and Fortran. Another approach is transpilation like in the upcoming LFortran compiler, but I guess this will only be an option for C++ codes calling Fortran subprograms.

Edit: I just remembered we had a thread open for [Automatic Fortran to C++ conversion](https://fortran-lang.discourse.group/t/automatic-fortran-to-c-conversion-with-fable/1047) with a program called [fable](https://cci.lbl.gov/fable/). The other way round (C++ to Fortran) is more difficult due to the complexity of the C++ type system.

> [@Dauptain](#):
>
> A5 - Are you aware of any efforts to build a C++ container interface to Fortran arrays using whats available in the “ISO\_Fortran\_binding.h” header? This would be great to enhance interoperability with C++.

This was my question. Some attempts at this can be found in the [stdlib issue #325](https://github.com/fortran-lang/stdlib/issues/325) originally opened in response to [my Discourse thread](https://fortran-lang.discourse.group/t/issues-interfacing-between-c-and-fortran/456/14). I’d be extremely happy if any skilled C++ developers could comment or offer their help in the stdlib issue.

---

_[View the full topic](https://fortran-lang.discourse.group/t/questions-from-a-fortran-hpc-webinar/1516)._
