Last 12 weeks · 0 commits
2 of 6 standards met
We probably need to make sure that parameter names are unique. In a single scope, this is enforced by the compiler. However, nothing is currently preventing the user to create multiple parameters with the same name in different scopes. We would probably need a central "parameter library" class (singleton?) that keeps track of all registered parameters.
While you can always assume to be available, POSIX mandates that you check the environment variable as a preference for temporary files and directories [1]. For the minor improvements: might fail and has to be handled somehow. I chose to throw an exception, but an implementation where you fall back to [2] is also conceivable. A lot of the specialization for function templates are not needed. They can just be replaced by regular overloads. An was missing, possibly leading to linkage problems. [1] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08_03 [2] https://linux.die.net/man/3/tmpfile
Repository: sharkdp/painless. Description: Painless parameter handling for easy exploration Stars: 65, Forks: 3. Primary language: C++. Languages: C++ (94.1%), CMake (5.9%). License: MIT. Topics: cpp, exploration, interactive, parameter, unix. Open PRs: 1, open issues: 1. Last activity: 5y ago. Community health: 42%. Top contributors: sharkdp, hmenke.