On 08/27/2014 04:09 PM, Seth Arnold wrote: > On Wed, Aug 27, 2014 at 05:01:46PM -0500, Tyler Hicks wrote: >> The writeu16() function was returning the address of the passed in >> std::ostringstream and then the callers of that function were >> incorrectly writing that address to the rule buffer. >> >> Signed-off-by: Tyler Hicks <[email protected]> > > Acked-by: Seth Arnold <[email protected]> > > (Sigh, I even wondered if the "return o" was correct and chalked it up to > crazy C++ being crazy.) > in fact when its done right that is correct C++
you return a reference back to the stream so you can chain the << blah << foo << bar; this case was just not doing it right -- AppArmor mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
