aboutsummaryrefslogtreecommitdiff
path: root/src/layer_context.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/layer_context.hh')
-rw-r--r--src/layer_context.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layer_context.hh b/src/layer_context.hh
index 59861a7..44857d4 100644
--- a/src/layer_context.hh
+++ b/src/layer_context.hh
@@ -71,7 +71,7 @@ struct LayerContext final : public Context {
assert(it != std::end(this->contexts));
using context_t = dispatch_context_t<DT>;
- auto ptr = std::dynamic_pointer_cast<context_t>(it->second);
+ const auto ptr = std::dynamic_pointer_cast<context_t>(it->second);
assert(ptr);
return ptr;
}