Advertisement
Vultraz

Untitled

Apr 2nd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. class callable_value : public std::enable_shared_from_this<callable_value>
  2. {
  3. public:
  4.     callable_value(boost::any value, formula_callable* parent)
  5.         : value_(value)
  6.         , parent_(parent)
  7.     {}
  8.    
  9.     boost:any& get_value() const
  10.     {
  11.         return value_;
  12.     }
  13.  
  14.     formula_callable* get_parent() const
  15.     {
  16.         return parent_;
  17.     }
  18.  
  19. private:
  20.     boost::any value_;
  21.     formula_callable* parent_;
  22. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement