Give little tag structs unique names so we don't violate the ODR

This commit is contained in:
baldurk
2017-05-15 10:11:56 +01:00
parent 1c190f0eb5
commit a6c77b5dee
7 changed files with 150 additions and 137 deletions
+3
View File
@@ -36,6 +36,8 @@
#include "Widgets/FindReplace.h"
#include "ui_ShaderViewer.h"
namespace
{
struct CBufferTag
{
CBufferTag() {}
@@ -50,6 +52,7 @@ struct ResourceTag
ResourceTag(uint32_t r) : reg(r) {}
uint32_t reg = 0;
};
};
Q_DECLARE_METATYPE(CBufferTag);
Q_DECLARE_METATYPE(ResourceTag);