U++ framework
Do not panic. Ask here before giving up.

Home » Developing U++ » U++ Developers corner » why no virtual destructor for RegExp?
why no virtual destructor for RegExp? [message #38795] Sat, 19 January 2013 06:22 Go to previous message
navi is currently offline  navi
Messages: 107
Registered: February 2012
Location: Sydney, Australia
Experienced Member
I was thinking of extending the RegExp class of the pcre plugin and implementing a ReplaceMatch() for it. Sort of like a replica of preg_replace() of php or String.Replace() of javascript. However while digging through RegExp I realize that RegExp doesn't have a virtual destructor! So there are no safe ways of extending RegExp class other-then to use private inheritance, composition or free-functions instead. In other word, extending RegExp safely is not possible!?

Regards
navi

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Details when compiling in 64 bits
Next Topic: Wanted: OpenGL for gtk+ backend
Goto Forum:
  


Current Time: Tue Apr 28 13:10:39 GMT+2 2026

Total time taken to generate the page: 0.01279 seconds