79810036

Date: 2025-11-05 12:25:35
Score: 2
Natty:
Report link

I am trying to refactor this class https://github.com/grastvei007/tagsystem/blob/develop/tag.h

And are now in the process of changing the qvariant on line 95 to std::variant. Since the qvariant seems not so good when using list, it returns a copy of the list with a call .toList().

Since the enums I have for the different data types are used across the applications then it make sense to be able to forward this into the std::variant, and it probably make more sense for string than int and double.

The whole class should probably been a template, and construct a new Tag like this Tag<Double> tag;

Reasons:
  • Blacklisted phrase (1): I am trying to
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: sav