Skip to content

Commit

Permalink
build: Fix a C++23 build error
Browse files Browse the repository at this point in the history
Trying to build with C++23 fails due to the Instruction type
being incomplete (probably std::unique_ptr<> requirements became
stricter). This patch fixes the error by #including the type
instead of forward declaring.

There are a few other C++23 build errors related to the use of
std::aligned_storage, but fixing those is beyond the scope of this
patch.
  • Loading branch information
victorvianna authored and arno-lunarg committed Jan 7, 2025
1 parent e6921b3 commit 19a5c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layers/gpu/spirv/function_basic_block.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
#include <memory>
#include <spirv/unified1/spirv.hpp>
#include "containers/custom_containers.h"
#include "instruction.h"

namespace gpuav {
namespace spirv {

class Module;
struct Function;
struct Instruction;

// Core data structure of module.
// The vector acts as our linked list to iterator and make occasional insertions.
Expand Down

0 comments on commit 19a5c45

Please sign in to comment.