boostorg / leaf

Lightweight Error Augmentation Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redundancy in LEAF_AUTO

uecasm opened this issue · comments

https://github.com/zajo/leaf/blob/6c113c51b4e49ef27b1bc9a8d57174ecf7304bab/include/boost/leaf/result.hpp#L14

Why does this use token pasting on v, when it will always produce a literal _r_v and no other name?

Yeah, it's redundant, copy/paste. Thanks for reporting, it is now fixed.