From 90388d746dc9e2998798279b4417bff7b47c86b1 Mon Sep 17 00:00:00 2001 From: Larry Gritz Date: Sun, 13 Nov 2022 14:45:10 -0800 Subject: [PATCH] Expose OIIO::Strutil::print in the main OIIO namespace We use this all the time in our internals, and I'm tired of having to write Strutil::print. Too verbose. By putting it in the main OIIO namespace, OIIO internals can reference as simply print(), and external users now have a choice of saying Strutil::print() or OIIO::print(). --- src/include/OpenImageIO/strutil.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/include/OpenImageIO/strutil.h b/src/include/OpenImageIO/strutil.h index e0f6c52f1f..ba23c056d8 100644 --- a/src/include/OpenImageIO/strutil.h +++ b/src/include/OpenImageIO/strutil.h @@ -1141,4 +1141,8 @@ edit_distance(string_view a, string_view b, } // namespace Strutil + +// Bring the ever-useful Strutil::print into the OIIO namespace. +using Strutil::print; + OIIO_NAMESPACE_END