It depends on the order of member variable declaration in the class. So a_
will be the first one, then b_
will be the second one in your example.
More Related Contents:
- gcc/g++: “No such file or directory”
- What is the order of evaluation in a member initializer list?
- ThreadSanitizer only prints 2 frames
- What are the differences between a pointer variable and a reference variable in C++?
- When should static_cast, dynamic_cast, const_cast and reinterpret_cast be used?
- What is “Argument-Dependent Lookup” (aka ADL, or “Koenig Lookup”)?
- Why should I use a pointer rather than the object itself?
- How do you serialize an object in C++?
- CMake error at CMakeLists.txt:30 (project): No CMAKE_C_COMPILER could be found
- Visual C++ equivalent of GCC’s __attribute__ ((__packed__))
- What are the GCC default include directories?
- Overloading member access operators ->, .*
- Object destruction in C++
- C++11 aggregate initialization for classes with non-static member initializers
- What are the differences between a pointer variable and a reference variable?
- Can I use C++11 with Xcode?
- Undefined reference to static const int
- How do I call “cpuid” in Linux?
- gcc: undefined reference to
- When is it necessary to use the flag -stdlib=libstdc++?
- Implicit conversion from char** to const char**
- How can I turn on (literally) ALL of GCC’s warnings?
- What are the main purposes of std::forward and which problems does it solve?
- GCC -Wuninitialized / -Wmaybe-uninitialized issues
- sizeof(struct) returns unexpected value
- Referencing memory operands in .intel_syntax GNU C inline assembly
- What is the branch in the destructor reported by gcov?
- What does exactly the warning mean about hidden symbol being referenced by DSO?
- C++ static initialization vs __attribute__((constructor))
- How to force GCC to assume that a floating-point expression is non-negative?