Questions tagged [unqualified-name]

A name that is relative to a declared context, eg just ArrayList (not java.util.ArrayList)

Analogous the a relative path in a filesystem, the name excluded the path of the containing/enclosing class, leaving just the name itself.

19 questions
0
votes
2 answers

error: variable or field ‘MetroHastings’ declared void

I'm new to StackOverflow and quite new to C++. I've a problem when I try to define a function inside my program "ising.cpp". That's the body function, it isn't complete yet but its development is unrelated to my error: #include #include…
0
votes
1 answer

Mongoose - error when including standard C++ library files

I'm using mongoose to build an HTTP server in C++, and I'm getting an error message when I try to include other files in my program: /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:183:8: error: expected…
0
votes
1 answer

C++ unqualified name lookup: different structure size in different cpp's leading to operator new allocating less memory than constructor processes?

Here is the example: Main.cpp: #include "MooFoobar.h" #include "MooTestFoobar.h" #include "FoobarUser.h" namespace moo::test::xxx { struct X { void* operator new(const size_t size); FoobarUser m_User; }; void*…
Andrian Nord
  • 677
  • 4
  • 11
0
votes
2 answers

Function defined in scope but the compiler complains that it is out of scope

I tried to implement strassens algorithm for two 2x2 matrices in order to make a recursive matrix multiplication algorithm however the implementation doesn't compile giving me errors like: "strassen was not declared in this scope" and …
zaidjan1295
  • 39
  • 1
  • 8
1
2