Using CodeBlocks 16.01 with c++11 flags I found that when making an alias of a nested template that the following code block gets placed in namespace std.
For example:
Using Foo = std::vector<std::pair<int, int>>;
struct Bar
{
public:
Bar(const int& i) : m_int(i)
{
// code here
}
// members here
int m_int;
};
The parser puts the struct named Bar into the std namespace. The following blocks however seem to parse correctly.
Is this irregular behavior? I've worked around it by aliasing the inner template first then used that alias in the outer template.