StackOverflow Questions for Tag: unnamed-namespace

Eric
Eric

Reputation: 19873

Is it possible to friend a class in an unnamed namespace in C++?

Score: 30

Views: 7261

Answers: 3

Read More
Scottie T
Scottie T

Reputation: 12245

Why are unnamed namespaces used and what are their benefits?

Score: 377

Views: 193789

Answers: 7

Read More
Dirk Herrmann
Dirk Herrmann

Reputation: 5949

What are use-cases and/or pros and cons of having a named namespace within an unnamed namespace?

Score: 0

Views: 52

Answers: 0

Read More
Sarfaraz Nawaz
Sarfaraz Nawaz

Reputation: 361772

Why an unnamed namespace is a "superior" alternative to static?

Score: 115

Views: 47537

Answers: 3

Read More
yohjp
yohjp

Reputation: 3135

C++ unnamed(anonymous) namespace definition

Score: 8

Views: 426

Answers: 1

Read More
scdmb
scdmb

Reputation: 15641

Can you have two functions in/outside an unnamed namespace, both with the same name?

Score: 5

Views: 9116

Answers: 2

Read More
dvk512
dvk512

Reputation: 39

Revert to unnamed namespace after importing another namespace within same scope

Score: 0

Views: 46

Answers: 1

Read More
sharp02
sharp02

Reputation: 203

Ambiguity between function inside unnamed namespace, and function outside

Score: 20

Views: 6157

Answers: 6

Read More
David Norman
David Norman

Reputation: 19899

Are there any uses for unnamed namespaces in header files?

Score: 69

Views: 50917

Answers: 5

Read More
senfen
senfen

Reputation: 907

Why do I get a linker error when declaring a function in an unnamed namespace in a header?

Score: 0

Views: 98

Answers: 1

Read More
Joseph Garvin
Joseph Garvin

Reputation: 21984

Why can't I explicitly instantiate a class template in an unnamed namespace if it was declared in another namespace?

Score: 7

Views: 4065

Answers: 4

Read More
Anders Lind
Anders Lind

Reputation: 4840

Are unnamed namespaces legal?

Score: 5

Views: 688

Answers: 3

Read More
Sarfaraz Nawaz
Sarfaraz Nawaz

Reputation: 361772

How are unnamed namespaces superior to the static keyword?

Score: 167

Views: 55421

Answers: 2

Read More
CIU5_8
CIU5_8

Reputation:

What effect does an unnamed namespace have on a class?

Score: 20

Views: 13155

Answers: 5

Read More
Merni
Merni

Reputation: 2922

What effect does an unnamed namespace have on a global variable?

Score: 26

Views: 11691

Answers: 5

Read More
drumsta
drumsta

Reputation: 1394

Should I prefer private member functions, or functions in an unnamed namespace?

Score: 53

Views: 14981

Answers: 4

Read More
stone
stone

Reputation: 303

Should constant strings be static data members, or should they be in an unnamed namespace?

Score: 28

Views: 13148

Answers: 9

Read More
Chubsdad
Chubsdad

Reputation: 25537

Why is an unnamed namespace not equivalent to a regular namespace with a "using namespace" declaration?

Score: 6

Views: 697

Answers: 1

Read More
Alex B
Alex B

Reputation: 84962

Do entities within an unnamed namespace nested in a regular namespace have internal linkage?

Score: 17

Views: 11307

Answers: 3

Read More
Arun
Arun

Reputation: 3408

Should a utility function be a function in an unnamed namespace, or a private member function?

Score: 3

Views: 807

Answers: 1

Read More
PreviousPage 1Next