Remove copying implicit conversions between NamespaceString and std::string.

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Minor - P4
    • 2.7.0
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      These implicit conversions are dangerous when combined with pass-by-reference, plus they introduce unexpected copies.

      While it would be ideal to remove all implicit conversion between the types, an expedient step along the way is to remove implicit construction of NamespaceStrings and std::strings, while still allowing implicit casting from const NamespaceString& to std::string&.

            Assignee:
            Andy Schwerin
            Reporter:
            Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: