Skip to content

Commit 938d5f5

Browse files
committed
std::is_pod -> IsPod
1 parent 9528fb2 commit 938d5f5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/engine/renderer/gl_shader.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2121
*/
2222
// gl_shader.cpp -- GLSL shader handling
2323

24+
#include "common/Type.h"
2425
#include <common/FileSystem.h>
2526
#include "gl_shader.h"
2627
#include "Material.h"
2728

2829
// We currently write GLBinaryHeader to a file and memcpy all over it.
2930
// Make sure it's a pod, so we don't put a std::string in it or something
3031
// and try to memcpy over that or binary write an std::string to a file.
31-
static_assert(std::is_pod<GLBinaryHeader>::value, "Value must be a pod while code in this cpp file reads and writes this object to file as binary.");
32+
static_assert(IsPod<GLBinaryHeader>, "Value must be a pod while code in this cpp file reads and writes this object to file as binary.");
3233

3334
// set via command line args only since this allows arbitrary code execution
3435
static Cvar::Cvar<std::string> shaderpath(

0 commit comments

Comments
 (0)