|
How can I cast a boost::shared_array<char> to boost::shared_array<const char> ?
Started by Joakim Karlsson on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
The internals of the class with const-qualified template parameter may differ dramatically from... .
Such compiler-generated casting can not be possible.
As both types are based on a template, both types are completely different for the compiler .
You can't.
|
|
Hello
How to convert shared_ptr that points to const object to shared_ptr that point to nonconst object. I am trying to do the following :
boost::shared_ptr<const A> Ckk(new A(4)); boost::shared_ptr<A> kk=const_cast< boost::shared_ptr<...
Answer Snippets (Read the full thread at stackoverflow):
The proper way should be this
boost::shared_ptr<A> kk (boost::const_pointer_cast<A>(Ckk));
'boost::const_pointer_cast' will do what you're asking for, but the obligatory second half of....
Use boost::const_pointer_cast , documentation.
|
|
I'm a bit stumpped on this one.
I created a security group in AD called "special data users" and add myself to it.
I then created a share on a server and give that AD security group full access to the share.
If i try to access the share I cannot and get...
Started by AlanBarber on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at serverfault):
I recommend you setup share permissions as follows to avoid confusion:
On the share permissions themselves....
Make sure that you've assigned read permissions once you added user to a new group .
And see if that account can access the share.
|
Ask your Facebook Friends
|
Is it possible to share a single 'god' instance among everyone that links to this code, to be placed in a shared object?
god* _god = NULL; extern "C" { int set_log_level(int level) { if(_god == NULL) return -1; _stb->log_level(level); return 0; } int...
Started by Edu Felipe on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Across actual processes, you.
@grieve is referring to a global accessed by multiple threads, but threads share the same parent process instance.
Be able to share the values across running programs.
|
|
Can I use an includes folder on one website and set up "trusted domains/IPs" that are allowed to access the files in this folder (all other domains/IPs are restricted)? All the sites are on the same shared hosting server, the global site has a dedicated...
Started by Peter on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
Say /blah/globalphpshare/ and user 'homer' wants to use greet.php he/she could simply do include("/blah/globalphpshare/greet.php");
If your... .
If all the websites are on a shared server you can make a folder readable and they can include that way.
|
|
I've had mixed results with using Windows Explorer to browse remote file shares.
The setup:
I'm at work on Windows XP SP3 Files are at home on Windows XP SP3 Two separate VPNs are available to access my PC at home corporate OpenVPN (10.1.2.3) a Hamachi...
Started by JMD on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
You're trying to access the share (in the first case) with your Windows credentials.
|
|
I'm trying to create a shared object (.so) that will make it so, by including one shared object with -lboost , I implicitly include all the boost libraries. Here's what I tried:
#!/bin/sh BOOST_LIBS="-lboost_date_time-gcc43-mt -lboost_filesystem-gcc43...
Started by Joey Adams on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You can get around this, perhaps, by writing a linker script that declares all of the symbols you need as EXTERN() dependencies... .
The linker is stripping out all of the symbol dependencies because the .so doesn't use them .
Not really, anyway.
You don't.
|
|
Hi guys,
I'm trying to embed a small view snippet that steps through a model fragment that works fine when I embed it in a single controller and pass it to a view like so;
Controller: return View(_entities.formTemplate.ToList());
View:
http://www.pastie...
Started by Eric Bennett on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You have a couple of options if you go....
You'll want to use the HtmlHelper method DropDownList() in order to create a input:
<%= Html.DropDownList("id", new SelectList(formBuilder, "ID", "Name")) %>
You probably want to use a ViewUserControl here .
|
|
As ugly as win32 Microsoft compiler is by using the __declspec macro, it does have the advantage of being explicit about what you want to export or not.
Moving the same code onto a Linux gnu/gcc system now means all classes are exported!(?)
Is this really...
Started by IanVaughan on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
There is a good article....
The GCC folks consider this visibility.
What is the point of sharing declarations of things the user can't use?
This is possible in GCC 4.0 and later.
If a class shouldn't be available, it shouldn't be in a public header .
|
|
This question is similar to this one , but not a duplicate because I'm asking about issues not discussed in that question.
I have a client-server project in Delphi 7 with the following directory structure:
\MyApp \MyClientApp \MyServerApp \lib
There are...
Started by Liron Yahdav on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
I dislike having files....
If you do not explicitly mark "Build with run time packages" the package content (all used dcu's) will be linked to your project as any other unit .
I usually create a package with all shared unit, and just use the units.
|