Skip to content

Commit

Permalink
Fix field names when the type has a const specifier
Browse files Browse the repository at this point in the history
  • Loading branch information
PaideiaDilemma committed Jan 15, 2025
1 parent 698acb3 commit 540be98
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
19 changes: 19 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
description = "A clipboard manager with gpg support for wayland";

inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";

outputs = { self, nixpkgs }:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
libs = with nixpkgs.legacyPackages.x86_64-linux; [
cmake
];
in
{

devShells.x86_64-linux.default = pkgs.mkShell {
nativeBuildInputs = libs;
};
};
}
4 changes: 3 additions & 1 deletion include/glaze/reflection/get_name.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
namespace glz::detail
{
// Do not const qualify this value to avoid duplicate `to_tie` template instantiations with rest of Glaze
// Temporary fix: const qualify it despite. Caused issues with reflect begin/end indices
// See https://github.com/stephenberry/glaze/issues/1568
template <class T>
extern T external;
extern const T external;

// using const char* simplifies the complier's output and should improve compile times
template <auto Ptr>
Expand Down

0 comments on commit 540be98

Please sign in to comment.