145 | @@ -146,7 +146,7 @@ typedef boost::variant<CNoDestination, PKHash, ScriptHash, WitnessV0ScriptHash,
146 | bool IsValidDestination(const CTxDestination& dest);
147 |
148 | /** Get the name of a txnouttype as a C string, or nullptr if unknown. */
149 | -const char* GetTxnOutputType(txnouttype t);
150 | +std::string GetTxnOutputType(txnouttype t);
I've purposely only put #include <string> where the compiler yells at me since there are other .h and .cpp files that use std::string but omit #include <string> since there were some other file that had it.
Not quite sure which I should follow...
You should include whatever you use in that module. There are certainly existing violations in the codebase, but that's not guidance.
Thanks for the input. Added #include <string>