NOAA-OWP / ngen

Next Generation Water Modeling Engine and Framework Prototype
Other
84 stars 63 forks source link

Convert embedded realization config file strings to raw literals #596

Open PhilMiller opened 1 year ago

PhilMiller commented 1 year ago
          Not for this PR, but those embedded configurations would be an ideal use of C++ raw string literals

https://en.cppreference.com/w/cpp/language/string_literal

Originally posted by @PhilMiller in https://github.com/NOAA-OWP/ngen/issues/594#issuecomment-1662337770

This will cut way down on internal escaping in the string literal realization configurations embedded in our tests

mattw-nws commented 1 year ago

Huh... C++ has heredocs... did not know that. I must say though that is one of the most obtuse pieces of documentation for a simple feature I've ever seen.