In the boost libraries, there are often examples of including the library like:
#pragma once
#include <boost/property_tree/ptree.hpp>
using boost::property_tree::ptree;
Throughout my program I have been importing namespaces like this:
#include "../MyClass.h"
using namespace MyClassNamespace;
Can someone please explain:
- The difference between
using
andusing namespace
; - What the advantage of negating the use of
using namespace
in favour ofusing
; - The differences in forward declaring
using
andusing namespace
;
Thanks