Questions tagged [forward]

There are myriad kinds of forwarding. Use this if you must, but try to find a more specific [tag] first.

There are many kinds of forwarding. As such, this tag is generally to general.

Try to use a more specific one, like , , , , and many more.

664 questions
15
votes
2 answers

Private Methods in Objective-C, in Xcode 4.3 I no longer need to declare them in my implementation file ?

I have a lot question marks tolling above my head. What I don't get is before xcode 4.3 I needed to declare forward declarations (for private methods) in my implementation file. Like in my .m file: // deleting this with xcode 4.3 the below code…
test
  • 323
  • 1
  • 3
  • 9
15
votes
5 answers

Forward declare typedef within C++ class

What's the best solution to forward declare a typedef within a class. Here's an example of what I need to solve: class A; class B; class A { typedef boost::shared_ptr Ptr; B::Ptr foo(); }; class B { typedef boost::shared_ptr
Tom
  • 483
  • 1
  • 5
  • 12
15
votes
2 answers

Nginx can not forward the request protocol correctly to upstream

I have a website in rails 4 beta. It is running on Nginx + Unicorn. I want nginx to forward the request protocol ( 'http' or 'https' ) to unicorn so that I can work with them. However I am not able to make it work. I put <%= request.ssl? %> and <%=…
blacktulip
  • 198
  • 2
  • 9
14
votes
3 answers

Forward declare a struct in Objective-C

I'm creating a protocol, and one of the parameters to a method I'm defining is a CMTime*. I would like to forward declare CMTime as opposed to including it. However, I've tried @class CMTime and it complains that it is redefined elsewhere as a…
user1186226
  • 141
  • 1
  • 3
13
votes
2 answers

Appropriate way to forward rvalue reference

I have the following code: #include #include using std::cout; using std::endl; void bar(const std::string& str) { cout << "const str - " << str << endl; } void bar(std::string&& str) { cout << "str - " << str <<…
rozina
  • 3,714
  • 21
  • 43
12
votes
2 answers

Java Legal Forward Referencing

Is the following code the case of legal forward referencing? if yes why? public class MyClass { private static int x = getValue(); private static int y = 5; private static int getValue() { return y; } public static void main(String[]…
Vibhor
  • 211
  • 3
  • 7
11
votes
3 answers

jsp:forward in Java without using JSP tag?

Is there a pure-Java equivalent to that I can use within a <% ... %> block? For example, I currently have a JSP page something like this: <% String errorMessage = SomeClass.getInstance().doSomething(); if…
Chris Carruthers
  • 3,745
  • 6
  • 27
  • 31
11
votes
2 answers

Grails: How do I forward an entire model from one controller to another?

How do I pass an entire model from one controller to another without using a redirect?
sparkyspider
  • 11,590
  • 8
  • 73
  • 113
10
votes
4 answers

How to capture browser's back/forward button click event or hash change event in javascript?

I want to alert() when browser's back or forward button is clicked or hash is changed in javascript. I have tried this solution and it is working but it is causing problems on other links in webpage and submit each request twice on any link click…
Student
  • 1,823
  • 9
  • 36
  • 49
10
votes
1 answer

Why is my code printing rvalue 2 times instead of rvalue & lvalue?

So I wanted to practice the usage of std::forward and created a Test class with 2 constructors. 1 with T& and the other with T&& as overload. T& prints lvalue, and T&& prints rvalue so I know which one of the constructors is being used. I create 2…
3l4x
  • 103
  • 4
10
votes
4 answers

Forward or Backward Compatibility in Android?

I would like to know whether the Android provides any sort of compatibility i.e either forward or backward. It means as in Blackberry if develop an Application with JDE 4.2 then that application will work on any handset with OS 4.2 or higher which…
sunil
  • 8,917
  • 18
  • 63
  • 88
10
votes
1 answer

How can I navigate to another page in managed bean?

I am trying to forward a page in my managed bean with the commandbutton: The following line: public void action() throws IOException { …
yrazlik
  • 9,023
  • 26
  • 84
  • 145
9
votes
3 answers

pyparsing, forward, and recursion

I'm using pyparsing to parse vcd (value change dump) files. Essentially, I want to read in the files, parse it into an internal dictionary, and manipulate the values. Without going into details on the structure, my problem occurs with identifying…
RaytheonLiszt
  • 215
  • 1
  • 5
  • 15
9
votes
2 answers

nginx: forward ssl connection to another server

I have a master nginx server deciding on the incoming server name where to route requests to. For two secondary servers this master nginx server is also holding ssl certificates and keys. The 3rd server is holding his own certificates and keys…
J J
  • 325
  • 1
  • 2
  • 10
9
votes
2 answers

Forward declaration & circular dependency

I've got two classes, Entity and Level. Both need to access methods of one another. Therefore, using #include, the issue of circular dependencies arises. Therefore to avoid this, I attempted to forward declare Level in Entity.h: class Level {…
Oracular
  • 307
  • 1
  • 3
  • 12
1
2
3
44 45