samedi 3 février 2018

shared_prt error while using boost regex

I am working in Codes::blocks 17.12 and installed boost 1.66.0 using GNU.

I am using boost and boost regex for first time, so, to start with i copied and pasted code from this site and tried compiling it, but failed.

the error which it is showing is following:

required by substitution of 'template boost::shared_ptr::shared_ptr(const boost::shared_ptr&, typename boost::detail::sp_enable_if_convertible::type) [with Y = const boost::re_detail_106600::cpp_regex_traits_implementation]'|

however, i even tried various other examples, listed below:

i even wrote some of them by myself
In short, in all the samples i had tried, i got exactly the same error.

How do remove this error and why in the first place it is there ?

Aucun commentaire:

Enregistrer un commentaire