kokizzu / re2

Automatically exported from code.google.com/p/re2
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Missing constructor definition for RE2::Arg::Arg(T*, Parser parser) #124

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This constructor is declared but never defined:
https://code.google.com/p/re2/source/browse/re2/re2.h#799

What steps will reproduce the problem?
1. Define bool ParseMyType(const char* str, int n, void* dest) { ... }
1. Call RE2::FullMatch(<string>, <regex>, RE2::Arg(&my_type, ParseMyType));
2. Get linker error

What is the expected output? What do you see instead?

Constructor should be defined somewhere, something like this:

template <typename T>
RE2::Arg::Arg(T* p, RE2::Arg::Parser parser) : arg_(p), parser_(parser) { }

What version of the product are you using? On what operating system?

Any/Any

Original issue reported on code.google.com by ho...@google.com on 12 Nov 2014 at 12:08

GoogleCodeExporter commented 9 years ago
RE2 has moved to GitHub. I have not moved the issues over. If this issue is 
still important to you, please file a new one at 
https://github.com/google/re2/issues. Thank you.

Original comment by rsc@golang.org on 11 Dec 2014 at 4:45