Skip to content

Commit

Permalink
Try to fix MSVC compilation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
kouchy committed Jul 26, 2024
1 parent be8df53 commit ab1ed52
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 54 deletions.
2 changes: 1 addition & 1 deletion include/Module/Stateful/Adaptor/Adaptor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class Adaptor
const std::vector<std::type_index>& datatype,
const size_t buffer_size);
using Stateful::deep_copy;
virtual void deep_copy(const Adaptor& m);
void deep_copy(const Adaptor& m);
inline bool is_full(const size_t id);
inline bool is_empty(const size_t id);
inline size_t n_free_slots(const size_t id);
Expand Down
2 changes: 1 addition & 1 deletion include/Module/Stateful/Set/Set.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Set : public Stateful

protected:
using Stateful::deep_copy;
virtual void deep_copy(const Set& m);
void deep_copy(const Set& m);
};
}
}
Expand Down
55 changes: 28 additions & 27 deletions include/Module/Stateful/Stateful.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,34 @@ class Stateful : public Module
virtual ~Stateful() = default;

protected:
using module::Module::deep_copy;

using module::Module::set_name;
using module::Module::set_short_name;

using module::Module::create_task;
using module::Module::create_tsk;

using module::Module::create_sck_fwd;
using module::Module::create_sck_in;
using module::Module::create_sck_out;
using module::Module::create_socket_fwd;
using module::Module::create_socket_in;
using module::Module::create_socket_out;

using module::Module::create_2d_sck_fwd;
using module::Module::create_2d_sck_in;
using module::Module::create_2d_sck_out;
using module::Module::create_2d_socket_fwd;
using module::Module::create_2d_socket_in;
using module::Module::create_2d_socket_out;

using module::Module::create_cdl;
using module::Module::create_codelet;
using module::Module::register_timer;
using module::Module::set_n_frames_per_wave;
using module::Module::set_single_wave;
using Module::deep_copy;
void deep_copy(const Stateful& m);

using Module::set_name;
using Module::set_short_name;

using Module::create_task;
using Module::create_tsk;

using Module::create_sck_fwd;
using Module::create_sck_in;
using Module::create_sck_out;
using Module::create_socket_fwd;
using Module::create_socket_in;
using Module::create_socket_out;

using Module::create_2d_sck_fwd;
using Module::create_2d_sck_in;
using Module::create_2d_sck_out;
using Module::create_2d_socket_fwd;
using Module::create_2d_socket_in;
using Module::create_2d_socket_out;

using Module::create_cdl;
using Module::create_codelet;
using Module::register_timer;
using Module::set_n_frames_per_wave;
using Module::set_single_wave;
};
}
}
Expand Down
50 changes: 25 additions & 25 deletions include/Module/Stateless/Stateless.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,31 @@ class Stateless final : public Module
virtual ~Stateless() = default;
virtual Stateless* clone() const;

using module::Module::set_name;
using module::Module::set_short_name;

using module::Module::create_task;
using module::Module::create_tsk;

using module::Module::create_sck_fwd;
using module::Module::create_sck_in;
using module::Module::create_sck_out;
using module::Module::create_socket_fwd;
using module::Module::create_socket_in;
using module::Module::create_socket_out;

using module::Module::create_2d_sck_fwd;
using module::Module::create_2d_sck_in;
using module::Module::create_2d_sck_out;
using module::Module::create_2d_socket_fwd;
using module::Module::create_2d_socket_in;
using module::Module::create_2d_socket_out;

using module::Module::create_cdl;
using module::Module::create_codelet;
using module::Module::register_timer;
using module::Module::set_n_frames_per_wave;
using module::Module::set_single_wave;
using Module::set_name;
using Module::set_short_name;

using Module::create_task;
using Module::create_tsk;

using Module::create_sck_fwd;
using Module::create_sck_in;
using Module::create_sck_out;
using Module::create_socket_fwd;
using Module::create_socket_in;
using Module::create_socket_out;

using Module::create_2d_sck_fwd;
using Module::create_2d_sck_in;
using Module::create_2d_sck_out;
using Module::create_2d_socket_fwd;
using Module::create_2d_socket_in;
using Module::create_2d_socket_out;

using Module::create_cdl;
using Module::create_codelet;
using Module::register_timer;
using Module::set_n_frames_per_wave;
using Module::set_single_wave;
};
}
}
Expand Down
6 changes: 6 additions & 0 deletions src/Module/Stateful/Stateful.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ Stateful::Stateful()
: Module()
{
}

void
Stateful::deep_copy(const Stateful& m)
{
Module::deep_copy(m);
}

0 comments on commit ab1ed52

Please sign in to comment.