Arama Sonuçları

  1. TheAdmin33

    Çözüldü singleton.h

    singleton.h dosyası tam olarak ne işe yarıyor ve en azından basit düzeyde de olsa geliştirilme yapılmalımı? #ifndef __INC_SINGLETON_H__ #define __INC_SINGLETON_H__ #include <cassert> #include <memory> template <typename T> class singleton { public: static std::unique_ptr<T>...
  2. TheAdmin33

    Çözüldü singleton.h

    galiba öyle çok kurcalamaya gerek yok, bu kadarı yeterli olur mu? #ifndef __INC_SINGLETON_H__ #define __INC_SINGLETON_H__ #include <cassert> template <typename T> class singleton { protected: static T* ms_singleton; public: singleton() {...
  3. TheAdmin33

    Çözüldü singleton.h

    bu şekilde düzenledim herhalde yeterli olur; #ifndef __INC_SINGLETON_H__ #define __INC_SINGLETON_H__ #include <cassert> #include <memory> template <typename T> class singleton { public: static std::unique_ptr<T> ms_singleton; singleton() {...
  4. TheAdmin33

    Çözüldü singleton.h

    teşekkürler anladım. geliştirme konusunda da yapay zekaya danıştım bir çok yapay zeka denedim nerdeyse hepsi benzer kodu verip bunu kullan dedi kafamda biraz karıştı. #ifndef __INC_SINGLETON_H__ #define __INC_SINGLETON_H__ #include <memory> #include <mutex> #include <cassert> template...
Geri
Üst