Commit 6062c79d authored by Michaël Roynard's avatar Michaël Roynard
Browse files

Fix imsave io for clang

parent 6ba16787
......@@ -73,7 +73,7 @@ namespace mln
freeimage_writer_plugin plugin(os, fif);
Saver2D<std::remove_cv_t<InputImage>> saver;
saver.save(ima, &plugin, false);
saver.save_experimental(ima, &plugin, false);
mln_exiting();
}
......
......@@ -19,9 +19,7 @@ namespace mln
public:
virtual ~Saver() = default;
void save(const Image<I>& ima, PluginWriter* plugin, bool permissive) const;
template <typename = std::enable_if_t<mln::is_a<I, experimental::Image>{}>>
void save(I ima, PluginWriter* plugin, bool permissive) const;
void save_experimental(I ima, PluginWriter* plugin, bool permissive) const;
protected:
virtual void m_set_domain(const I& ima, PluginWriter* plugin) const = 0;
......@@ -68,8 +66,7 @@ namespace mln
}
template <class I>
template <typename>
void Saver<I>::save(I ima, PluginWriter* plugin, bool permissive) const
void Saver<I>::save_experimental(I ima, PluginWriter* plugin, bool permissive) const
{
if (not plugin->can_write(typeid(mln_value(I))))
{
......
Supports Markdown
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