Don't pollute the global namespace with a namespace called fs.
authorCarl Hetherington <cth@carlh.net>
Wed, 4 Oct 2023 17:47:32 +0000 (19:47 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 16 Dec 2023 01:07:38 +0000 (02:07 +0100)
src/lib/grok/context.h

index e7b5dbcbc221b3367d365f92e29182e03de36c15..85ed385bd50e94f3415aac6c6a3c022da3302cf6 100644 (file)
@@ -21,7 +21,6 @@
 #pragma once
 
 #include <boost/filesystem.hpp>
-namespace fs = boost::filesystem;
 
 #include "../config.h"
 #include "../dcp_video.h"
@@ -170,6 +169,8 @@ public:
                shutdown();
        }
        bool launch(DCPVideo dcpv, int device){
+               namespace fs = boost::filesystem;
+
                if (!messenger_ )
                        return false;
                if (launched_)