On 14/02/16 19:55 +0200, Alexander Ploumistos wrote:
Yesterday I was notified that liborigin failed to build in rawhide:
https://bugzilla.redhat.com/show_bug.cgi?id=1307729
The problem is that the package defines a type 'function' in the
global namespace, but also puts 'using namespace std;" in the global
namespace, in a header. That causes the 'function' struct and
'std::function' to be ambiguous.
This is why 'using namespace std' should never appear in (or before)
headers.
This patch fixes the build, but only by hacking around the problem,
not fixing the evil 'using namespace std' in the header.