-static inline struct cds_wfs_node *
- __cds_wfs_pop_with_state_nonblocking(struct __cds_wfs_stack *s, int *state)
-{
- return __cds_wfs_pop_with_state_nonblocking(__cds_wfs_stack_cast(s), state);
-}
-
-static inline struct cds_wfs_node *
- __cds_wfs_pop_with_state_nonblocking(struct cds_wfs_stack *s, int *state)
+template<typename T> static inline struct cds_wfs_node *
+ __cds_wfs_pop_with_state_nonblocking(T s, int *state)