Skip to content

Commit 3cf3418

Browse files
committed
ex_getter<none_t>: directly return boost::none
1 parent a2fa7da commit 3cf3418

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/glue.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ struct ex_getter < std::string > {
4040
template<>
4141
struct ex_getter < boost::none_t > {
4242
static boost::none_t get(const extractor &input, int pos) {
43-
boost::none_t t = nullptr;
44-
return t;
43+
return boost::none;
4544
}
4645
};
4746

0 commit comments

Comments
 (0)