Browse Source

fix clang errors

master
Niklas Rosenstein 2 years ago
parent
commit
8a2c493966
Signed by: NiklasRosenstein GPG Key ID: 06D269B33D25F6C6
2 changed files with 3 additions and 2 deletions
  1. + 1
    - 0
      include/NiklasRosenstein/context.hpp
  2. + 2
    - 2
      include/NiklasRosenstein/iterator.hpp

+ 1
- 0
include/NiklasRosenstein/context.hpp

@ -8,6 +8,7 @@
#pragma once
#include <functional>
#include <vector>
namespace niklasrosenstein {

+ 2
- 2
include/NiklasRosenstein/iterator.hpp

@ -64,10 +64,10 @@ namespace niklasrosenstein {
template <typename Y>
struct _holder_type<Y, false, true> : _holder_type<Y, false, false> {
// This struct holds a reference type and the internal value WILL be
// moed when dereferenced.
// moved when dereferenced.
using _holder_type<Y, false, false>::_holder_type;
// TODO: In debug mode, track if the value was already moved.
Y get() { return std::move(value); }
Y get() { return std::move(_holder_type<Y, false, false>::value); }
};
template <typename Y, bool move_value>

Loading…
Cancel
Save