~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/ref.h

  • Committer: Brian Aker
  • Date: 2009-12-06 01:55:53 UTC
  • mfrom: (1238.1.5 push)
  • Revision ID: brian@gaz-20091206015553-cva833q4gvwj11ob
Bundle for staging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLED_ITEM_REF_H
21
21
#define DRIZZLED_ITEM_REF_H
22
22
 
 
23
#include "drizzled/item/ident.h"
 
24
 
23
25
class Item_ref :public Item_ident
24
26
{
25
27
protected:
57
59
  enum Type type() const                { return REF_ITEM; }
58
60
  bool eq(const Item *item, bool binary_cmp) const
59
61
  {
60
 
    Item *it= ((Item *) item)->real_item();
 
62
    Item *it= static_cast<Item *>(((Item *) item)->real_item());
61
63
    return ref && (*ref)->eq(it, binary_cmp);
62
64
  }
63
65
  double val_real();