openframeworks / openframeworks/openFrameworks
Feature Request : string ofToString(const std::pair<T,K>& value) / std::pair<T,K> ofFromString(const string& value)
Open
Nobody has claimed this yet.
core
development-strategy
feature
section-internals
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
template<class T, class K>
string ofToString(const std::pair<T>& value) {
...
}
template<class T>
std::pair<T,K> ofToString(const string& value) {
...
}
This might also extend to std::tuple.
That said, I'm not completely sure this is a good idea -- which makes me wonder if we should get rid of our non POD ofToString(const std::vector<T>) etc. Otherwise this turns into a massive bit of serialization code in the core.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing ofToString and ofFromString overloads, especially the non-POD std::vector support mentioned in the issue. Decide whether std::pair and possibly std::tuple belong in the core serialization API, and define the supported scope before implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100