Commit Graph

2 Commits

Author SHA1 Message Date
Fawzi Mohamed
3a24b2d332 utils/function: expose also ref and cref
ref and cref are also in tr1, and in functional, and are useful when
when using functors allocated on the stack that should not be copied.

Change-Id: I7e14560d88eaa9306e47c4bd71d011f406d1054a
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-10-28 17:30:19 +01:00
Fawzi Mohamed
97e199eac2 utils: adding Utils::Function to support polymorphic function wrappers
Utils::Function wraps std::function or std::tr1::function to give
polymorphic function wrappers, i.e. a way to accept function pointers
or functors as arguments as long as they have the correct signature.

Change-Id: I4032264cf6b84ef647f790c566543633b4d0653b
Reviewed-by: hjk <hjk121@nokiamail.com>
2013-08-21 16:47:05 +02:00