[CXX-1463] b_regex and b_codewscope constructors lack SFINAE protections Created: 04/Nov/17  Updated: 28/Oct/23  Resolved: 06/Nov/17

Status: Closed
Project: C++ Driver
Component/s: Implementation
Affects Version/s: None
Fix Version/s: 3.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible

 Description   

Unlike most of the other b_xxx} types that have templated constructors, the {{b_regex and b_codewscope types lack the SFINAE magic that prevents the templated constructors from binding too aggressively and overtaking the copy constructor. The methods should have the same SFINAE magic as the other templated constructors.



 Comments   
Comment by Githook User [ 06/Nov/17 ]

Author:

{'name': 'Andrew Morrow', 'username': 'acmorrow', 'email': 'acm@mongodb.com'}

Message: CXX-1463 SFINAE out copy ctor competitor for b_regex and b_codewscope
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/c091dbf5ed300dd3ca11bf2de3b3b1c6094069f9

Generated at Wed Feb 07 22:02:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.