From: Tudor Bosman Date: Thu, 29 Aug 2013 00:46:16 +0000 (-0700) Subject: Fix insignificant CRTP bug X-Git-Tag: v0.22.0~887 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e16c010990428ff88734ed3d5bf758b062f244f3;p=folly.git Fix insignificant CRTP bug Summary: @override-unit-failures Flaky unit tests passed on the second try, but the git hook still complains Test Plan: iobuf_cursor_test Reviewed By: philipp@fb.com FB internal diff: D948768 --- diff --git a/folly/io/Cursor.h b/folly/io/Cursor.h index 48ba6baf..73e37965 100644 --- a/folly/io/Cursor.h +++ b/folly/io/Cursor.h @@ -372,7 +372,7 @@ class Writable { write(T value) { const uint8_t* u8 = reinterpret_cast(&value); Derived* d = static_cast(this); - push(u8, sizeof(T)); + d->push(u8, sizeof(T)); } template