While defining functions in another namespace is technically allowed as long as the definition can be matched to a declaration, this can lead to ambiguous resolutions, such as here. --- pcbnew/ratsnest_viewitem.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pcbnew/ratsnest_viewitem.cpp b/pcbnew/ratsnest_viewitem.cpp index 252ef3c..d31c0bd 100644 --- a/pcbnew/ratsnest_viewitem.cpp +++ b/pcbnew/ratsnest_viewitem.cpp @@ -35,7 +35,7 @@ #include <boost/foreach.hpp> -using namespace KIGFX; +namespace KIGFX { RATSNEST_VIEWITEM::RATSNEST_VIEWITEM( RN_DATA* aData ) : EDA_ITEM( NOT_USED ), m_data( aData ) @@ -118,3 +118,5 @@ void RATSNEST_VIEWITEM::ViewGetLayers( int aLayers[], int& aCount ) const aCount = 1; aLayers[0] = ITEM_GAL_LAYER( RATSNEST_VISIBLE ); } + +}
_______________________________________________ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp