How to make a namespace alias available only to a class

Namespace alias in the class definition is illegal, as specified by the language specification. Its allowed in only in namespace scope or function scope. You can make an alias at the namespace scope. But this will create a permanent alias which can be used from other files as well. However, the solution is simple: you … Read more

What is a namespace alias?

A namespace alias is a convenient way of referring to a long namespace name by a different, shorter name. As an example, say you wanted to use the numeric vectors from Boost’s uBLAS without a using namespace directive. Stating the full namespace every time is cumbersome: boost::numeric::ublas::vector<double> v; Instead, you can define an alias for … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)