CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Threaded View

  1. #2
    Join Date
    Aug 2006
    Posts
    231

    Re: Gobally available Service with scoped Lifetime

    Code:
    static Provider *s_pInstance;
    Looks static to me.

    Don't you need the graphics renderer during the whole lifetime of the application? Then with your solution the "scoped" object is practically global anyway.

    Do you really need to access these services/subsystems from all over your codebase?

    You should strive to design your program in a way that minimizes dependencies.
    Last edited by TubularX; July 21st, 2016 at 10:25 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured