Click here to Skip to main content
15,894,330 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: How Flutter is helping in the development of cross-platform mobile apps? Pin
Mike Hankey10-Jul-21 8:00
mveMike Hankey10-Jul-21 8:00 
GeneralRe: How Flutter is helping in the development of cross-platform mobile apps? Pin
Gerry Schmitz10-Jul-21 10:21
mveGerry Schmitz10-Jul-21 10:21 
GeneralRe: How Flutter is helping in the development of cross-platform mobile apps? Pin
ayesha faima29-Jan-23 21:51
ayesha faima29-Jan-23 21:51 
GeneralI heard this somewhere Pin
Richard Andrew x649-Jul-21 13:18
professionalRichard Andrew x649-Jul-21 13:18 
GeneralRe: I heard this somewhere Pin
Marc Clifton9-Jul-21 13:28
mvaMarc Clifton9-Jul-21 13:28 
GeneralRe: I heard this somewhere Pin
Greg Utas9-Jul-21 13:55
professionalGreg Utas9-Jul-21 13:55 
GeneralRe: I heard this somewhere Pin
Peter_in_27809-Jul-21 16:12
professionalPeter_in_27809-Jul-21 16:12 
GeneralRe: I heard this somewhere Pin
Randor 9-Jul-21 17:20
professional Randor 9-Jul-21 17:20 
Richard Andrew x64 wrote:
Can anyone explain the theory behind this?
Hi,

I can give you an example of why using-declarations should be avoided.

Sometime ago I was on a two-man team (Hello Andy !) working on the Delivery Optimization system service[^] which would debut with Windows 10 Threshold. The original code base was developed with VS2010 and 'using namespace boost' was sprinkled throughout much of our source code.

The first problem we encountered was that boost::chrono, boost::atomic, and boost:mutex conflicted with std::chrono, std::atmomic and std:mutex. There were a few other issues with std::thread but I can't remember them all. We spent several days (probably a week) refactoring our code.

When C++17 came around I had a similar problem with boost::filesystem conflicting with std::filesystem in other projects.

We eventually moved away from boost to the std namespace when the internal OS build system added support for C++11. Now days I just type the entire scope and avoid using-declarations.
GeneralRe: I heard this somewhere Pin
Richard Andrew x649-Jul-21 17:41
professionalRichard Andrew x649-Jul-21 17:41 
GeneralRe: I heard this somewhere Pin
Randor 9-Jul-21 18:32
professional Randor 9-Jul-21 18:32 
GeneralRe: I heard this somewhere Pin
Nelek10-Jul-21 6:10
protectorNelek10-Jul-21 6:10 
GeneralRe: I heard this somewhere Pin
Randor 10-Jul-21 6:44
professional Randor 10-Jul-21 6:44 
GeneralRe: I heard this somewhere Pin
Nelek10-Jul-21 14:58
protectorNelek10-Jul-21 14:58 
GeneralRe: I heard this somewhere Pin
honey the codewitch9-Jul-21 18:21
mvahoney the codewitch9-Jul-21 18:21 
GeneralRe: I heard this somewhere Pin
den2k8811-Jul-21 21:17
professionalden2k8811-Jul-21 21:17 
GeneralRe: I heard this somewhere Pin
honey the codewitch12-Jul-21 0:49
mvahoney the codewitch12-Jul-21 0:49 
GeneralRe: I heard this somewhere Pin
den2k8812-Jul-21 1:22
professionalden2k8812-Jul-21 1:22 
GeneralRe: I heard this somewhere Pin
honey the codewitch12-Jul-21 1:31
mvahoney the codewitch12-Jul-21 1:31 
GeneralRe: I heard this somewhere Pin
den2k8812-Jul-21 1:37
professionalden2k8812-Jul-21 1:37 
GeneralRe: I heard this somewhere Pin
honey the codewitch12-Jul-21 1:58
mvahoney the codewitch12-Jul-21 1:58 
GeneralRe: I heard this somewhere Pin
KateAshman12-Jul-21 3:50
KateAshman12-Jul-21 3:50 
GeneralMessage Closed Pin
9-Jul-21 10:19
User 152455139-Jul-21 10:19 
GeneralRe: You are a rock ... this for the weekend Pin
User 152455139-Jul-21 11:08
User 152455139-Jul-21 11:08 
GeneralRe: You are a rock ... this for the weekend Pin
User 152455139-Jul-21 11:08
User 152455139-Jul-21 11:08 
GeneralYou are a number Pin
Gerry Schmitz9-Jul-21 6:08
mveGerry Schmitz9-Jul-21 6:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.