Boost logo

Boost :

From: Paul Flores (flores_p_a_at_[hidden])
Date: 2007-09-11 11:53:28


Thanks for your feedback!
   
  Solved one portion of the problem, I needed to build Boost "correctly".
   
  The next error I am struggling with refering to the sregex::compile statement is :
  /home/pflore/boost/boost_1_34_1/boost/xpressive/traits/cpp_regex_traits.hpp:241: warning: comparison is always false due to limited range of data type

   
  Here is the sample program:
   
  #include <iostream>
  #include <boost/xpressive/xpressive.hpp>
  using namespace boost::xpressive;
  int main()
  {
  std::string hello( "hello world!" );
  sregex rex = sregex::compile( "(\\w+) (\\w+)!" );
  smatch what;
  if( regex_match( hello, what, rex ) )
  {
  std::cout << what[0] << '\n'; // whole match
  std::cout << what[1] << '\n'; // first capture
  std::cout << what[2] << '\n'; // second capture
  }
  return 0;
  }
  

Steven Burns <royalstream_at_[hidden]> wrote:
  Hey, Copy-Paste the sample, you will get help faster.

Steven

"Paul Flores" wrote in message
news:919000.92034.qm_at_web39202.mail.mud.yahoo.com...
> Can some one point in me in the right direction:
> Environment: RHEL 3.2.3-47
> Compiler: GCC 3.2.3
> BOOST Library: xpressive
> Issue:
> Trying the example found in the xpressive.pdf on page 31and I keep getting
> the following message. Can someone help?
>
> Thanks,
>
> Paul
> *****************************************************************
>
> /home/pflore/boost/boost_1_34_1/boost/xpressive/basic_regex.hpp: In
> function
> `int main()':
> /home/pflore/boost/boost_1_34_1/boost/xpressive/basic_regex.hpp:167: `
>
> boost::xpressive::basic_regex::basic_regex(boost::iterator_value::type*)
> [with BidiIter = __gnu_cxx::__normal_iterator> std::basic_string, std::allocator >
> >]'
> is private
> NParse.cpp:104: within this context
>
>
>
> ---------------------------------
> Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user
> panel and lay it on us.
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

       
---------------------------------
Got a little couch potato?
Check out fun summer activities for kids.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk