Commit 6f23959e authored by Dominik Charousset's avatar Dominik Charousset

Use config_value_access in config options

parent d7c893f3
......@@ -48,7 +48,8 @@ void store_impl(void* ptr, const config_value& x) {
template <class T>
config_value get_impl(const void* ptr) {
return config_value{*reinterpret_cast<const T*>(ptr)};
using trait = select_config_value_access_t<T>;
return config_value{trait::convert(*reinterpret_cast<const T*>(ptr))};
}
template <class T>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment