X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=spsc-queue%2Fqueue.h;h=3167e22bf8e4f98d1d29129ea91dbbf933ef635a;hb=b4b1d528f7d1db77448a389776ecd5c95da2084a;hp=7a6f29e80c60bd6d9f9b0ef6e5571aae5501db4e;hpb=91cb95bde87d2b7023fc2d2e344fba24e6dbca70;p=model-checker-benchmarks.git diff --git a/spsc-queue/queue.h b/spsc-queue/queue.h index 7a6f29e..3167e22 100644 --- a/spsc-queue/queue.h +++ b/spsc-queue/queue.h @@ -1,4 +1,5 @@ #include +#include #include "eventcount.h" @@ -51,9 +52,10 @@ private: rl::var data; node(T data = T()) - : next(0) - , data(data) - {} + : data(data) + { + next = 0; + } }; rl::var head;