cginternals / glbinding

A C++ binding for the OpenGL API, generated using the gl.xml specification.
https://glbinding.org
MIT License
831 stars 93 forks source link

Syntax typo with namespaces in readme `Meta Information` code section #331

Closed Challanger524 closed 2 years ago

Challanger524 commented 2 years ago

Meta Information

using glbinding::Meta; // <-- `aux::` namespace
for (const Version & v : Meta::versions())  // <-- `glbinding::` namespace for `Version `
  std::cout << v << std::endl;

Better to make it this way:

for (const glbinding::Version &ver : glbinding::aux::Meta::versions())
  std::cout << ver << std::endl;
scheibel commented 2 years ago

Thanks for reporting. However, I still like the using declaration for Readme code and opt to just add the aux namespace at the appropriate place.