diff --git a/include/libtorrent/linked_list.hpp b/include/libtorrent/linked_list.hpp index ce471b89e..43de017ff 100644 --- a/include/libtorrent/linked_list.hpp +++ b/include/libtorrent/linked_list.hpp @@ -37,7 +37,6 @@ POSSIBILITY OF SUCH DAMAGE. namespace libtorrent { - // TODO: 3 enable_if T derives from list_node template struct list_node { @@ -65,6 +64,8 @@ namespace libtorrent }; // TOOD: 3 add a unit test + // T must derive from list_node. Having an enable_if here would require T + // to be a complete type, which is a bit too restrictive. template struct linked_list {