Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 614 Bytes

compiler-error-c2251.md

File metadata and controls

30 lines (24 loc) · 614 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2251
Compiler Error C2251
11/04/2016
C2251
C2251
fefe050c-f8d3-4316-b237-8007dbcdd3bf

Compiler Error C2251

namespace 'namespace' does not have a member 'member' - Did you mean 'member'?

The compiler was not able to find an identifier in the specified namespace.

The following sample generates C2251:

// C2251.cpp
// compile with: /c
namespace A {
   namespace B {
      void f1();
   }

   using namespace B;
}

void A::f1() {}   // C2251
void A::B::f1() {}   // OK