-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just Questions: V2 and Install #192
Comments
Yes I routinely use V2 in my new development. I just never threw the switch to make v2 the default because it would just break older code. The installation uses m4 to generate the appropriate include files. So it is extremely fast, but is a necessary step. The m4 bits allow me to treat the different template parameters consistently without code duplication. CPP/FPP was just not up to the task. Once installed, you just need your compilers built in preprocessor and the include paths. You could always do the install once on a system you control and then just copy the install dir to the platforms that you want. |
I should create a new suite of examples, but really don't have time for an organized response on that front just now. I can probably point you to a few cases in my other projects where v2 containers are being used. Or I could use this thread to at least create some starter examples. I'll start with a demonstration of a vector of integers when I have some time. |
Thanks! I'll try the install and copy approach. If you could point at a couple other projects for examples that would be great! |
I took a quick break today to at least get the ball rolling on bonafide examples. See Real-world examples coming in a moment. |
First - just in case you've not seen them, there is some useful documentation at: There are several v2 containers used in my pFlogger project: (Note that a few in there are still v1, because v2 dropped support for containers-of-pointers for technical reasons. And the replacement approach is just tedious enough that I did not bother to update here.) Try these in particular:
The simplest (non-polymorphic) map (that uses v2) that I could find is at: And of course in each example you'll have to wander around neighboring files/directories to find the uses, which is what you really need to see. |
The library looks very interesting (and sorely needed in the Fortran world!)
Is V2 ready to play with? The examples all seem to be for V1.
Is there a need to install to consume? As a template library, I was expecting to be able to just include the appropriate files from the include directory into my source.
The challenges I have are cloud build machines (not directly under my control), distributed team (would prefer not to require installs on everyone's machines) and builds for both Linux and Windows. We are using Intel OneAPI Fortan 2022.1.0 on both Windows and Linux. We are not using cmake as our build orchestrator.
Thanks!
The text was updated successfully, but these errors were encountered: