lkml.org 
[lkml]   [2006]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: C++ pushback
    Avi Kivity wrote:
    > void put(Value& value)
    > {
    > // assumes value (or a value with an equal key) is not already in
    > Link& head = _buckets[Traits::hash(value) & (_size - 1)];
    > static_cast<Link&>(value).next = &head;
    > head.next= &value;
    > }
    s/&head/head.next/ in the third line, of course.

    --
    Do not meddle in the internals of kernels, for they are subtle and quick to panic.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-04-28 10:32    [W:3.200 / U:0.336 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site