Hello, I am trying to compile Flusspferd on Windows using MSVC, but it fails due to a template instantiation problem. For the ease of explanation I rewrote the problem in simpler terms:
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/is_convertible.hpp>
class UndefinedType;
class A
{
};
class TestClass {
public:
...
How do I represent the following design using Visio 2003's UML tools?
#include <vector>
template<class T>
class Test
{
public:
bool write(const std::vector<T> & data);
};
I have created a parameterized classes for std::vector and Test and an operation for write(), but when I'm not sure how to add the parameter to write().
...
Up to now, I've always hard coded what page template a certain page should use, either based on the URL, or what type of node it is.
What would be really useful is if there was a way to select which tpl file to use, right there in the node edit form. This would allow the user to flick between different page layouts at will.
Does anyone...
I haven't found a clear answer to this question (but have determined the HTML tag is more trouble than it's worth.)
When you're working with multiple directories on a website, how do you make sure relative links to the rest of your site work as you change your current directory? I don't want my link to "/index.php" to actually link to ...
I'm trying to iterate through an Expando-Model's dynamic properties in order to output them all. Is there a way of doing this other than creating your own method like such:
class Event(db.Expando):
platform = db.ReferenceProperty(Platform)
date = db.DateTimeProperty()
def getValues(self):
return self._dynamic_proper...
Hello!
I am working on game engine prototype and have the following question:
Right now my engine implementation is DirectX-bound and everything works fine.
I've got a core::Renderer class which has methods to render geometry, set shaders, lightning, etc...
Some of them are templated, some not.
class Renderer {
// ...
templat...
Hi there,
I have an events category which is searchable by a sub-category (by city where the event is being held). I have the 'The Future is Now!' plugin to allow me to publish future dated posts but hoping that I can set up a paginated template that, when a post 'expires' it will no longer show up in the loop/archive.
I'm also wonderi...
I have searched for an easy way to do this but couldn't find a specific example.
I have an application developed in GWT utilizing GAE that I would like to have a standard look at feel for the various pages within the application.
Is there a way to do this utilzing GWT?
...
template<class T1, class T2 = int> class A;
template<class T1 = int, class T2> class A;
which is equal to this?
1) template<class T1 = int, class T2 = int> class A;
2) template<class T1, class T2> class A;
I know 1st option is correct. according to the standards
But ,for me in various compilers 1st option is not acceptin...
I would like to be able to hide the whole sidebar (navigation, search, toolbox) and reclaim the space. In other words, the page should widen to fill the space used by the sidebar.
I don't want to do this for every page but only for specific pages, so preferably using a template.
I have got a template which hides the sidebar but, crucia...
I am going to write a code generator to generate a COBOL program using some input file of records. I am going to implement it as java program. I think XML/XSL approach would not be appropriate in this case, because the input file is not in XML format.
I think a template processor would be helpful, because some parts of it can be generat...
I'm trying to be able to write an extensible grammar using functions, but can't seem to find the right syntax for accepting a template function. I'm using Visual C++ 2008. It will accept a variable of the same type as the template function, or a similar non-template function, but not the template function itself.
Error 1 error C2...
This question is perhaps somehow odd, but how can I speed up g++ compile time? My C++ code heavily uses boost and templates. I already moved as much as possible out of the headers files and use the -j option, but still it takes quite a while to compile (and link).
Are there any tools out there which analyse my code and point out bottle-...
Help me please with wpf menu.
I want the arrows showing that a menu item has also subitems.
By default these arrows get placed beginning on the second level. but I want them to be shown on the first level also.
I don't clearly understand what to change and how. Although I found
<Trigger Property="Role" Value="SubmenuItem">
inside ...
Hello all,
I'm encoding a wmv file to MP4 (h264) but the bitrate of the file is shotting to much. if i'm giving 256k it goes around 1025k or even 411k. How can we solve this problem using ffmpeg?
Here is the command line i'm using
ffmpeg -i "18959.wmv" -vcodec libx264 -b 256kb -bt 100k -s 640x480 -
r 25 -aspect 4:3 -acodec libf...
I'm using both the contemplate and subscription modules in Drupal and I'm noticing a problem. If I enable the template editor provided by contemplate for my posts, then the subscription widget goes away. I looked at the body variables listing in contemplate and didn't find any vars I could use to restore that widget. Does anyone know how...
I have a minor issue. We'd like to put as much stylistic items in the styles and outside of the control templates, to make themeing easier. So for the scrollbar's repeatbutton, I can get all of this to work but IsPressed. That only works from the template.
So the template is (basically):
<ControlTemplate x:Key="ScrollBarButtonCT" ...
I have an a simple Registry pattern:
class Object
{
//some secondary simple methods
};
#define OBJECT_DEF(Name) \
public: \
static const char* Name() { return Name; } \
private:
class Registry
{
struct string_less {
bool operator() (const std::string& str1, const std::string& str2) {
for(int i = 0; i < str1.size() && i < st...
If I return a Jinja2 template like so:
return render_response('home.htm', **context)
How do then get a list of the variables in context from within the template?
...
Hi! This is wholy mysterious to me. I'm using g++ on ubuntu, and this is some of my code (with class names change, but nothing else because I'm still using stubs everywhere):
Bob.hpp
template <class A>
class Bob : public Jack<Chris, A>
{
public:
Bob(int x1, int x2, float x3 = 1.0, float x4 = 2.0, float x5 = 3.0) throw(Exc...