blob: 95bf28ad0b19d3cab4a4b5767a079957f53dab16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef TYPEPOINTER_H
#define TYPEPOINTER_H
template <typename T, typename P = typename boost::intrusive_ptr<T>>
class TypePointer : public P {
public:
TypePointer() { }
TypePointer(const std::string &) { }
TypePointer & operator=(const std::string & value) {
P::operator=(GenLoader<T>::createNew(value));
return *this;
}
};
#endif
|