Boost logo

Boost :

From: John Max Skaller (skaller_at_[hidden])
Date: 2001-06-22 09:21:59

I'm having a problem using regex (boost 1_22_0) I don't quite
First, here's the compiler with error messages, its gcc 2.95.3:
[some irrelevant warnings have been elided]

g++ -Wno-long-long -pedantic -ansi -shared -Iboost_1_22_0 -I. -Igc/src
tut/examples/tut24.cpp -o tut/examples/
  .. ERROR CODE 0x100
tut/examples/tut24.cpp: In method `bool
_function_944__curry_1::apply(const string &)':
tut/examples/tut24.cpp:1055: no matching function for call to
`regex_match (regex_tA &, string &)'


What is 'regex_tA'??
My code looks like this: first, I include boost/regex.hpp,
and do a typedef:

#include <boost/regex.hpp>
typedef boost::reg_expression<char> regex_t;

The actual code causing the error is:

//FUNCTION _curry_1: Apply method
bool _function_944__curry_1::apply(string const &_arg ){
  flx::gc::generic::collector_t &gc = *ptf->gc;
  _val_945_s = _arg;

Here's the declaration of the class containing member _val_946_r:

struct _function_943_regex_match: _function_type_1493 {
  _function_type_1492* apply(regex_t const &);
  //OS frames
  global_frame_t *pgf;
  process_frame_t *ppf;
  thread_frame_t *ptf;

  _function_943_regex_match (
    global_frame_t *_pgf,
    process_frame_t *_ppf,
    thread_frame_t *_ptf
  regex_t _val_946_r;

John (Max) Skaller, mailto:skaller_at_[hidden]
10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
checkout Vyper
download Interscript

Boost list run by bdawes at, gregod at, cpdaniel at, john at