xo-reader2: DefineSsm: respond to = token
This commit is contained in:
parent
5787565bfb
commit
58481857e2
1 changed files with 6 additions and 1 deletions
|
|
@ -103,7 +103,12 @@ namespace xo {
|
|||
return *this;
|
||||
}
|
||||
|
||||
/** safe downcast from variant. null if downcast fails **/
|
||||
/** safe downcast from variant. null if downcast fails
|
||||
*
|
||||
* Use:
|
||||
* obj<AFoo> x = ...;
|
||||
* obj<AFoo,DQuux> quux = obj<AFoo,DQuux>::from(x);
|
||||
**/
|
||||
static obj from(const OObject<AFacet> & other) {
|
||||
return obj(other.template downcast<DRepr>());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue