Reputation
13,964
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
1 21 50
Newest
 Enlightened
Impact
~353k people reached

Jun
14
comment Did C++11 address concerns passing std lib objects between dynamic/shared library boundaries? (ie dlls and so)?
@user877329: Or maybe ODR should be explicitly phrased in a way that implies that whenever the code refers to x, the same definition for what x means must be used. Then it does not apply to symbols that are only used by dlsym/GetProcAddress, so plugins don't have to break ODR. It still does apply to any other symbols in plugins and it better should, because having two instances of common class impedimenta is going to break stuff.
Jun
14
comment Did C++11 address concerns passing std lib objects between dynamic/shared library boundaries? (ie dlls and so)?
@user877329: A plugin indeed must. But most shared objects are not plugins (shared object == dynamic library). And even for plugins, the exception to ODR really only applies to symbols loaded via dlsym/GetProcAddress and it only applies because nothing ever expects them to be the same. If plugins cause multiple versions of some symbol that is used via direct code reference like virtual method table of shared class or operator new, things are likely to get very ugly.
Jun
7
awarded  Enlightened
Jun
7
awarded  Nice Answer
Apr
30
comment Copyright for collaborative group
@Toby: There will also likely exist quite a bit of general advice for voluntary associations (or whatever the basic type of non-profit is) which will deal with the membership and governance parts, so you only need to decide whom you grant the right to sublicense the managed works for third parties.
Apr
30
comment Copyright for collaborative group
@Toby: No, sorry. Besides, I am almost certainly in different jurisdiction and you need something in yours. Perhaps try looking for some software or research foundations; they may be having similar legal problems.
Apr
30
answered Copyright for collaborative group
Apr
21
revised Does using a database server make sense if the application only does things locally?
added 23 characters in body
Apr
21
answered Does using a database server make sense if the application only does things locally?
Apr
21
comment Does using a database server make sense if the application only does things locally?
SQLite does provide referential integrity (though it needs to be turned on) and basic constraints. It is also significantly faster than most server if used properly. It's main disadvantage compared to server is that it is single-writer.
Feb
27
comment How to avoid violating one definition rule in this case?
@ZijingWu: I've added suggestion how you can prevent linking against wrong library binary. It's slightly hackish, but should serve the purpose.
Feb
27
revised How to avoid violating one definition rule in this case?
mention solution for edit
Feb
27
revised How to avoid violating one definition rule in this case?
mention solution for edit
Feb
27
answered How to avoid violating one definition rule in this case?
Jan
27
comment Why does this algorithm work in O(n m)?
@DhruvMullick: Number of iterations means the number that the third clause in the for is executed. The point is that maximum for b is number of edges from a, which is O(m/n), not m.
Jan
27
revised Why does this algorithm work in O(n m)?
explain the thing in more details
Jan
27
comment Why does this algorithm work in O(n m)?
I am assuming that n is number of vertices, m is number of edges as per usual convention and the nxt array is adjacency list of the graph.
Jan
27
answered Why does this algorithm work in O(n m)?
Jan
14
comment What is the status of @ and $ characters in C++?
Note that this makes @ useful in documentation where it often stands for “any operator”.
Dec
18
revised Does using GCC specific builtins qualify as incorporation within a project?
Extended the C library part.