Comments (3)
What do you think the purpose of boost::noncopyable base class is?
from recipes.
sorry if I didn't state it clearly, what I meant is the default
constructor, like you wrote in Singleton class:
private:
Singleton();
~Singleton();
As I understand, boost::noncopyable only declared the copy constructor
and assigment operator to be private,
for you current ThreadLocalSingleton class, I think user can still
write sth like:
ThreadLocalSingleton t1, t2, t3;
On Tue, Mar 12, 2013 at 11:17 PM, Shuo Chen [email protected]:
What do you think the purpose of boost::noncopyable base class is?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-14781132
.
ChuChao
from recipes.
You are right, thank you. fixed,
from recipes.
Related Issues (20)
- 对MutexLockGuard类的疑问 HOT 1
- thread factory of version2 not works as expected HOT 1
- Need your help with 3 questions HOT 2
- recipes/algorithm/combination.cc HOT 2
- 获取google::protobuf::Descriptor* 问题 HOT 1
- recipes/thread/test/Cuntomer.cc中的findEntry,parseData好像没实现
- 229和230行是不是写反了。先broadcast再修改条件,难道不会导致事件丢失吗? HOT 1
- 对于readTimerfd函数调用的疑问
- Compile AsyncLogging_test.cc error under gcc-7.3.0 ubuntu 14.04 HOT 2
- fix dead lock for thread/test/Counter.cc HOT 2
- 2.1.1 post和traverse示例问题 HOT 1
- channel_->disableAll 执行了两次 HOT 1
- 关于吞吐量的疑问 HOT 4
- recipes/reactor 中所有例子 make 之后显示 error 如下: ambigous ???? HOT 2
- Mac OS 下 如何 替代Thread.cc 中的头文件,<sys/prctl.h>,<linux/unistd.h> HOT 2
- reactor/s06/Poller对端TCP连接关闭时,为什么会调用Poller::updateChannel()
- reactor/s06/Poller TCP客户端关闭后,为什么会调用Poller::updateChannel()呢? HOT 2
- does the Object of data has member function of clean()? HOT 3
- 希望recipes中的boost库也替换成std的用法,便于新手学习 HOT 2
- EventLoop没办法正常退出 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recipes.