layers: replace VUID error map with struct
Replace the std::unordered_map container holding the VUID -> spec text
mapping with a vanilla struct of char * literal strings. The map is
now built on first use from the string table.
This change is a workaround for slow build times observed with use of
the directly initialized unordered_map, in particular on 32-bit Android
builds.
Change-Id: Ic0ab0bf443a57ee616b3cac17fc8ea0442e6d0c2
diff --git a/layers/parameter_validation_utils.cpp b/layers/parameter_validation_utils.cpp
index 436b340..29cc315 100644
--- a/layers/parameter_validation_utils.cpp
+++ b/layers/parameter_validation_utils.cpp
@@ -1,7 +1,7 @@
-/* Copyright (c) 2015-2017 The Khronos Group Inc.
- * Copyright (c) 2015-2017 Valve Corporation
- * Copyright (c) 2015-2017 LunarG, Inc.
- * Copyright (C) 2015-2017 Google Inc.
+/* Copyright (c) 2015-2018 The Khronos Group Inc.
+ * Copyright (c) 2015-2018 Valve Corporation
+ * Copyright (c) 2015-2018 LunarG, Inc.
+ * Copyright (C) 2015-2018 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -19,7 +19,6 @@
*/
#define NOMINMAX
-#define VALIDATION_ERROR_MAP_IMPL
#include <limits.h>
#include <math.h>